diff --git a/public/assets/style.css b/public/assets/style.css new file mode 100644 index 0000000..8f414f5 --- /dev/null +++ b/public/assets/style.css @@ -0,0 +1 @@ +/* TODO */ diff --git a/public/head.html b/public/head.html index fb8e12a..c8c6b42 100644 --- a/public/head.html +++ b/public/head.html @@ -4,6 +4,7 @@ koushin + {{end}} diff --git a/server.go b/server.go index 3f521e7..1de4eae 100644 --- a/server.go +++ b/server.go @@ -286,7 +286,7 @@ func New(imapURL, smtpURL string) *echo.Echo { cookie, err := ctx.Cookie(cookieName) if err == http.ErrNoCookie { // Require auth for all pages except /login - if ctx.Path() == "/login" { + if ctx.Path() == "/login" || strings.HasPrefix(ctx.Path(), "/assets/") { return next(ctx) } else { return ctx.Redirect(http.StatusFound, "/login")