Exemplo n.º 1
1
func (this ControllerShell) AddTo(superroute *router.Router) {
	superroute.AddRoute(this.Collection)
}
Exemplo n.º 2
0
func AddMapRoutes(superroute *router.Router, routemap map[string]rack.Middleware, methodfinder func(string, rack.Middleware) *router.Router) {
	for name, action := range routemap {
		superroute.AddRoute(methodfinder(name, action))
	}
}