Updated to latest version of pack & run

This commit is contained in:
Eduard Urbach 2017-06-25 13:13:47 +02:00
parent 8f0cdd45e0
commit 2496f26bf4
2 changed files with 6 additions and 6 deletions

View File

@ -7,21 +7,21 @@ import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/components/js"
)
func init() {
// Scripts
js := components.JS()
scripts := js.Bundle()
app.Get("/scripts", func(ctx *aero.Context) string {
ctx.SetResponseHeader("Content-Type", "application/javascript")
return js
return scripts
})
app.Get("/scripts.js", func(ctx *aero.Context) string {
ctx.SetResponseHeader("Content-Type", "application/javascript")
return js
return scripts
})
// Web manifest

View File

@ -5,7 +5,7 @@ import (
"github.com/aerogo/api"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/auth"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/components/css"
"github.com/animenotifier/notify.moe/layout"
"github.com/animenotifier/notify.moe/middleware"
"github.com/animenotifier/notify.moe/pages/admin"
@ -41,7 +41,7 @@ func configure(app *aero.Application) *aero.Application {
app.Security.Load("security/fullchain.pem", "security/privkey.pem")
// CSS
app.SetStyle(components.CSS())
app.SetStyle(css.Bundle())
// Sessions
app.Sessions.Duration = 3600 * 24