diff options
Diffstat (limited to 'routes/404.go')
-rw-r--r-- | routes/404.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/routes/404.go b/routes/404.go new file mode 100644 index 0000000..64ea167 --- /dev/null +++ b/routes/404.go @@ -0,0 +1,7 @@ +package routes + +import "github.com/gofiber/fiber/v2" + +func NotFound(c *fiber.Ctx) error { + return c.Status(404).Render("404", fiber.Map{}, "layouts/main") +} |