// NewHTTPRouter returns a new instance of julienschmidt/httprouter
// this is the default router when using api2go
NewHTTPRouter returns a new instance of julienschmidt/httprouter
this is the default router when using api2go
// NewHTTPRouter returns a new instance of julienschmidt / httprouter // this is the default router when using api2go
func NewHTTPRouter(prefix string, notAllowedHandler http.Handler) Routeable {
	router := httptreemux.New()
	router.MethodNotAllowedHandler = func(w http.ResponseWriter, r *http.Request, methods map[string]httptreemux.HandlerFunc) {
		notAllowedHandler.ServeHTTP(w, r)
	}
	group := router.UsingContext()
	return &HTTPRouter{router: router, group: group}
}
func NewHTTPRouter ( prefix string , notAllowedHandler http . Handler ) Routeable { router := httptreemux . New ( ) router . MethodNotAllowedHandler = func ( w http . ResponseWriter , r * http . Request , methods map [ string ] httptreemux . HandlerFunc ) { notAllowedHandler . ServeHTTP ( w , r ) } group := router . UsingContext ( ) return & HTTPRouter { router : router , group : group } }
NewHTTPRouter returns a new instance of julienschmidt/httprouter
this is the default router when using api2go
NewHTTPRouter returns a new instance of julienschmidt / httprouter this is the default router when using api2go