Redirect / to INBOX

This commit is contained in:
Simon Ser 2019-12-17 12:44:13 +01:00
parent 2a2a48c7fa
commit 0c21c501ff
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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)