diff options
| author | Bobby <[email protected]> | 2025-12-18 17:45:14 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-18 17:45:14 +0530 |
| commit | 2584f8d7a0eb3bc55716f78a8bba45d524252b69 (patch) | |
| tree | 2252c904dc45d115321485e7b3f1f181834342dd /router | |
| parent | 74209da9580c7ae63898664437dc7d021010d29a (diff) | |
| download | lain-2584f8d7a0eb3bc55716f78a8bba45d524252b69.tar.xz lain-2584f8d7a0eb3bc55716f78a8bba45d524252b69.zip | |
basic bootstrapping for server start
Diffstat (limited to 'router')
| -rw-r--r-- | router/router.go | 11 |
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") + }) +} |
