Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f55e376

Browse files
author
Peter Kieltyka
authored
Merge pull request go-chi#116 from jiop/master
Fix missing MethodNotAllowed in Router interface
2 parents 9d7b95c + 17a9775 commit f55e376

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chi.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ type Router interface {
7777
// NotFound defines a handler to respond whenever a route could
7878
// not be found.
7979
NotFound(h http.HandlerFunc)
80+
81+
// MethodNotAllowed defines a handler to respond whenever a method is
82+
// not allowed.
83+
MethodNotAllowed(h http.HandlerFunc)
8084
}
8185

8286
// Routes interface adds two methods for router traversal, which is also

0 commit comments

Comments
 (0)