From 30af16421a20b933b4dc870e71513a7478c9f934 Mon Sep 17 00:00:00 2001 From: Neeraj319 Date: Sat, 30 Dec 2023 14:12:26 +0545 Subject: [PATCH] fix: addRoute --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index d66aa38..3d88783 100644 --- a/router.go +++ b/router.go @@ -169,7 +169,7 @@ func validateHandlerParamStructAttrs(function interface{}, pathParams map[string } } -func (r *SimpleRouter) addRoute(path string, function interface{}, http_method HTTP_METHOD) { +func (r *SimpleRouter) AddRoute(path string, function interface{}, http_method HTTP_METHOD) { pathParams := make(map[string]int) routeHandler := createRouteHandler(http_method)