summaryrefslogtreecommitdiff
path: root/router
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-12-18 17:45:14 +0530
committerBobby <[email protected]>2025-12-18 17:45:14 +0530
commit2584f8d7a0eb3bc55716f78a8bba45d524252b69 (patch)
tree2252c904dc45d115321485e7b3f1f181834342dd /router
parent74209da9580c7ae63898664437dc7d021010d29a (diff)
downloadlain-2584f8d7a0eb3bc55716f78a8bba45d524252b69.tar.xz
lain-2584f8d7a0eb3bc55716f78a8bba45d524252b69.zip
basic bootstrapping for server start
Diffstat (limited to 'router')
-rw-r--r--router/router.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/router/router.go b/router/router.go
new file mode 100644
index 0000000..11015f9
--- /dev/null
+++ b/router/router.go
@@ -0,0 +1,11 @@
+package router
+
+import "github.com/gofiber/fiber/v2"
+
+func Initialize(router *fiber.App) {
+ router.Static("/static", "./static")
+
+ router.Get("/", func(c *fiber.Ctx) error {
+ return c.SendString("Lain Mail - Present day, present time")
+ })
+}