Skip to content

Commit

Permalink
router: fix route delete wrong method
Browse files Browse the repository at this point in the history
  • Loading branch information
vnxx committed May 1, 2024
1 parent e8c4ddc commit cc22333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *route) Delete(path string, controller Controller, middlewares ...Hanlde
return controller(r.support)
})

r.router.Put(path, handlers...)
r.router.Delete(path, handlers...)
return r
}

Expand Down

0 comments on commit cc22333

Please sign in to comment.