From 0c21c501ff603d044ff003c06abea9fd1e876280 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Dec 2019 12:44:13 +0100 Subject: [PATCH] Redirect / to INBOX --- plugins/base/routes.go | 4 ++++ 1 file changed, 4 insertions(+) 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)