Пример #1
0
// MountController mounts the API JSON schema controller under "/schema.json".
func MountController(service goa.Service) {
	service.ServeFiles("/schema.json", "schema/schema.json")
}
Пример #2
0
// 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/*")
}
Пример #3
0
// MountController mounts the swagger spec controller under "/swagger.json".
func MountController(service goa.Service) {
	service.ServeFiles("/swagger.json", "swagger/swagger.json")
}