Skip to content

Commit

Permalink
feat: fix bug in add route
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj319 committed Dec 30, 2023
1 parent d603ac8 commit 123d0ae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ func (r *SimpleRouter) AddRoute(path string, function interface{}, http_method H

var pathName string
if strings.Contains(path, ":") {
var pathName string = ""
for index, value := range strings.Split(path, "/") {
if value == "" {
continue
Expand Down

0 comments on commit 123d0ae

Please sign in to comment.