diff --git a/unstable/simplerouter/router.go b/unstable/simplerouter/router.go index 10f25ac..d65ea54 100644 --- a/unstable/simplerouter/router.go +++ b/unstable/simplerouter/router.go @@ -137,7 +137,7 @@ func (rg *RouteGroup) Handle(method string, 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) {