diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-17 12:44:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-17 12:44:13 +0100 |
commit | 0c21c501ff603d044ff003c06abea9fd1e876280 (patch) | |
tree | 9c8df8879b7c925a239b035e5eb7e7945950dd5a /plugins/base | |
parent | 2a2a48c7fafc4a32b1f4a4629e1d5447e29e8d57 (diff) | |
download | alps-0c21c501ff603d044ff003c06abea9fd1e876280.tar.gz alps-0c21c501ff603d044ff003c06abea9fd1e876280.zip |
Redirect / to INBOX
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/routes.go | 4 |
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) |