diff options
| author | Bobby <[email protected]> | 2025-06-15 00:05:43 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-06-15 00:05:43 +0530 |
| commit | 9f6aac08a8e9a0685a21fbe4ee292cb514485f22 (patch) | |
| tree | 165b210ffd080c47d775596322868996d51413dc /controllers | |
| parent | e79dcba2565c10f9a967a97e863fedb727a3a041 (diff) | |
| download | imageboard-9f6aac08a8e9a0685a21fbe4ee292cb514485f22.tar.xz imageboard-9f6aac08a8e9a0685a21fbe4ee292cb514485f22.zip | |
setting up the imageboard
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/home.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/controllers/home.go b/controllers/home.go new file mode 100644 index 0000000..1b513c8 --- /dev/null +++ b/controllers/home.go @@ -0,0 +1,17 @@ +package controllers
+
+import (
+ "imageboard/utils/shortcuts"
+
+ "github.com/gofiber/fiber/v2"
+)
+
+func HomeController(ctx *fiber.Ctx) error {
+ ctx.Locals("Title", "Home Page")
+ customdata := struct {
+ Custommessage string
+ }{
+ Custommessage: "Welcome to the Imageboard!",
+ }
+ return shortcuts.Render(ctx, "home", customdata)
+}
|
