From d927f526560c1dfa62bd141ac57415ffd108d4f8 Mon Sep 17 00:00:00 2001
From: gjahn <gregor.jahn@bht-berlin.de>
Date: Tue, 24 Oct 2023 02:41:53 +0200
Subject: [PATCH] Add default route handler

---
 routing/routes.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/routing/routes.go b/routing/routes.go
index d65a920..70ca5f9 100644
--- a/routing/routes.go
+++ b/routing/routes.go
@@ -9,4 +9,8 @@ func SetRoutes( router *f.App ){
     router.Get( "/", func( c *f.Ctx ) error {
         return c.SendString( "Hello World!" )
     })
+
+    router.Use( func( c *f.Ctx ) error {
+        return c.SendStatus( 418 )
+    })
 }
-- 
GitLab