Subpath handler for simplerouter #6

Closed
naslevente wants to merge 3 commits from router-feat into master
Showing only changes of commit 3eb4d77b3a - Show all commits

View File

@@ -137,7 +137,7 @@ func (rg *RouteGroup) Handle(method string, path string, handler http.Handler) {
} }
func (rg *RouteGroup) SubpathHandle(path string, handler http.Handler) { func (rg *RouteGroup) SubpathHandle(path string, handler http.Handler) {
rg.registerRoute("", path, handler.ServeHTTP) rg.Handle("", path, handler)
} }
func (rg *RouteGroup) GET(path string, handler http.Handler) { func (rg *RouteGroup) GET(path string, handler http.Handler) {