github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/resource/_fixtures/nested/actions/app.go.tmpl (about)

     1  package actions
     2  
     3  import "github.com/gobuffalo/buffalo"
     4  
     5  func App() *buffalo.App {
     6  	if app == nil {
     7  		app.Resource("/admin/widgets", AdminWidgetsResource{})
     8  		app.ServeFiles("/", assetsBox) // serve files from the public directory
     9  	}
    10  	return app
    11  }