예제 #1
1
func (this ControllerShell) AddTo(superroute *router.Router) {
	superroute.AddRoute(this.Collection)
}
예제 #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))
	}
}