aboutsummaryrefslogtreecommitdiff
path: root/routes/404.go
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-10-27 18:18:06 -0300
committerFChannel <>2022-06-19 12:53:29 -0700
commitd2277b1f9b17e61456cd312ef54542e1cfa81a40 (patch)
tree3f7f4b6dffe95c0f9909921dd47700e733b4ee47 /routes/404.go
parent9f8195162295d2a789462e6b13394174a5745100 (diff)
restructuring, part 1 of many
Diffstat (limited to 'routes/404.go')
-rw-r--r--routes/404.go7
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")
+}