diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 17:42:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 17:42:33 +0100 |
commit | b7be271560d2c24c9811076a58f8b8c799292659 (patch) | |
tree | c34b2045ee8a08d70b03f05ef23ccd663dbe996a | |
parent | c3fd390b1ab27026246724f02caef3cd2b1205f7 (diff) | |
download | alps-b7be271560d2c24c9811076a58f8b8c799292659.tar.gz alps-b7be271560d2c24c9811076a58f8b8c799292659.zip |
Add empty CSS stylesheet
References: https://todo.sr.ht/~sircmpwn/koushin/19
-rw-r--r-- | public/assets/style.css | 1 | ||||
-rw-r--r-- | public/head.html | 1 | ||||
-rw-r--r-- | server.go | 2 |
3 files changed, 3 insertions, 1 deletions
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 @@ <head> <meta charset="utf-8"> <title>koushin</title> + <link rel="stylesheet" href="/assets/style.css"> </head> <body> {{end}} @@ -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") |