mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 12:27:02 +00:00
Add a missing call for fallbackHandler
Former-commit-id: a1ce94b39d326657cdbce34276477c34752f0000
This commit is contained in:
@@ -7,6 +7,9 @@ import (
|
||||
func main() {
|
||||
app := iris.New()
|
||||
|
||||
// add a fallback handler to process requests that would not be declared in the router.
|
||||
app.Fallback(fallbackHandler)
|
||||
|
||||
// this works as expected now,
|
||||
// will handle *all* expect DELETE requests, even if there is no routes
|
||||
app.Get("/action/{p}", h)
|
||||
|
||||
Reference in New Issue
Block a user