// MountController mounts the API JSON schema controller under "/schema.json". func MountController(service goa.Service) { service.ServeFiles("/schema.json", "schema/schema.json") }
// MountController mounts the JavaScript example controller under "/js". func MountController(service goa.Service) { // Serve static files under js service.ServeFiles("/js/*filepath", "/home/raphael/go/src/github.com/raphael/goa/examples/cellar/js") service.Info("mount", "ctrl", "JS", "action", "ServeFiles", "route", "GET /js/*") }
// MountController mounts the swagger spec controller under "/swagger.json". func MountController(service goa.Service) { service.ServeFiles("/swagger.json", "swagger/swagger.json") }