aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-07 16:15:34 +0530
committerBobby <[email protected]>2026-03-07 16:15:34 +0530
commit6dd57549df7b6679a1aa9888f4d59edaaec5b3f9 (patch)
tree05b37b22e659cfb5f8b97b12abf857f22df4f2be /pages
parent1f3a99dcc410f31ac247b55ae9880f6045ab46b4 (diff)
downloaddove-6dd57549df7b6679a1aa9888f4d59edaaec5b3f9.tar.xz
dove-6dd57549df7b6679a1aa9888f4d59edaaec5b3f9.zip
feat: implement request handling and dashboard features with new tags and utilities
Diffstat (limited to 'pages')
-rw-r--r--pages/mailbox.go17
-rw-r--r--pages/mailboxes.go13
-rw-r--r--pages/users.go13
3 files changed, 43 insertions, 0 deletions
diff --git a/pages/mailbox.go b/pages/mailbox.go
new file mode 100644
index 0000000..a444a73
--- /dev/null
+++ b/pages/mailbox.go
@@ -0,0 +1,17 @@
+package pages
+
+import (
+ "dove/types"
+ "dove/utils/meta"
+ "dove/utils/shortcuts"
+
+ "github.com/gofiber/fiber/v2"
+)
+
+func Mailbox(context *fiber.Ctx) error {
+ address := meta.Request(context).Param("address").Required()
+ meta.SetPageTitle(context, address)
+ return shortcuts.Render(context, "dashboard/mailbox", types.Mailbox{
+ Address: address,
+ })
+}
diff --git a/pages/mailboxes.go b/pages/mailboxes.go
new file mode 100644
index 0000000..c70574e
--- /dev/null
+++ b/pages/mailboxes.go
@@ -0,0 +1,13 @@
+package pages
+
+import (
+ "dove/utils/meta"
+ "dove/utils/shortcuts"
+
+ "github.com/gofiber/fiber/v2"
+)
+
+func Mailboxes(context *fiber.Ctx) error {
+ meta.SetPageTitle(context, "Mailboxes")
+ return shortcuts.Render(context, "dashboard/mailboxes", nil)
+}
diff --git a/pages/users.go b/pages/users.go
new file mode 100644
index 0000000..ed25cd0
--- /dev/null
+++ b/pages/users.go
@@ -0,0 +1,13 @@
+package pages
+
+import (
+ "dove/utils/meta"
+ "dove/utils/shortcuts"
+
+ "github.com/gofiber/fiber/v2"
+)
+
+func Users(context *fiber.Ctx) error {
+ meta.SetPageTitle(context, "Users")
+ return shortcuts.Render(context, "dashboard/users", nil)
+}