diff options
| author | Bobby <[email protected]> | 2026-02-11 14:02:58 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-11 14:02:58 +0530 |
| commit | d87e08e0fc5911b2ff40604944448e1f0aaa31b7 (patch) | |
| tree | d64dba5b796ad39cb0514293cfd29826b66b8c7c /controllers/main.go | |
| parent | 2c567dd96712a887b42cf4df3bdaa9f5f2b51a43 (diff) | |
| download | cafe-d87e08e0fc5911b2ff40604944448e1f0aaa31b7.tar.xz cafe-d87e08e0fc5911b2ff40604944448e1f0aaa31b7.zip | |
Implement authentication flow with middleware and controllers, add OpenID discovery URL to server config
Diffstat (limited to 'controllers/main.go')
| -rw-r--r-- | controllers/main.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/controllers/main.go b/controllers/main.go new file mode 100644 index 0000000..1b9a74b --- /dev/null +++ b/controllers/main.go @@ -0,0 +1,14 @@ +package controllers + +import ( + "cafe/utils/meta" + "cafe/utils/shortcuts" + + "github.com/gofiber/fiber/v2" +) + +func MainHall(context *fiber.Ctx) error { + meta.SetPageTitle(context, "Main Hall") + + return shortcuts.Render(context, "pages/main", nil) +} |
