aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/routes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 2c8d653..84126d3 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -19,6 +19,10 @@ import (
)
func registerRoutes(p *koushin.GoPlugin) {
+ p.GET("/", func(ectx echo.Context) error {
+ return ectx.Redirect(http.StatusFound, "/mailbox/INBOX")
+ })
+
p.GET("/mailbox/:mbox", handleGetMailbox)
p.POST("/mailbox/:mbox", handleGetMailbox)