diff --git a/_examples/routing/fallback-handlers/main.go b/_examples/routing/fallback-handlers/main.go index 66308ae4..aa3c871b 100644 --- a/_examples/routing/fallback-handlers/main.go +++ b/_examples/routing/fallback-handlers/main.go @@ -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)