Skip to content
Snippets Groups Projects
Commit d927f526 authored by gjahn's avatar gjahn
Browse files

Add default route handler

parent 447827fc
No related branches found
No related tags found
No related merge requests found
...@@ -9,4 +9,8 @@ func SetRoutes( router *f.App ){ ...@@ -9,4 +9,8 @@ func SetRoutes( router *f.App ){
router.Get( "/", func( c *f.Ctx ) error { router.Get( "/", func( c *f.Ctx ) error {
return c.SendString( "Hello World!" ) return c.SendString( "Hello World!" )
}) })
router.Use( func( c *f.Ctx ) error {
return c.SendStatus( 418 )
})
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment