Skip to content

Commit

Permalink
fix: addRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj319 committed Dec 30, 2023
1 parent 77b7780 commit 30af164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 30af164

Please sign in to comment.