From 3eb4d77b3ab8dc24c7e3382d5a695cc4c5a2a76e Mon Sep 17 00:00:00 2001 From: Levente Batuska Date: Sat, 9 Nov 2024 18:48:26 +0100 Subject: [PATCH] fix(SimpleRouter): use rg.Handle instead of rg.registerRoute --- unstable/simplerouter/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {