Updated to latest version of pack & run
This commit is contained in:
parent
8f0cdd45e0
commit
2496f26bf4
@ -7,21 +7,21 @@ import (
|
|||||||
|
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components/js"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// Scripts
|
// Scripts
|
||||||
js := components.JS()
|
scripts := js.Bundle()
|
||||||
|
|
||||||
app.Get("/scripts", func(ctx *aero.Context) string {
|
app.Get("/scripts", func(ctx *aero.Context) string {
|
||||||
ctx.SetResponseHeader("Content-Type", "application/javascript")
|
ctx.SetResponseHeader("Content-Type", "application/javascript")
|
||||||
return js
|
return scripts
|
||||||
})
|
})
|
||||||
|
|
||||||
app.Get("/scripts.js", func(ctx *aero.Context) string {
|
app.Get("/scripts.js", func(ctx *aero.Context) string {
|
||||||
ctx.SetResponseHeader("Content-Type", "application/javascript")
|
ctx.SetResponseHeader("Content-Type", "application/javascript")
|
||||||
return js
|
return scripts
|
||||||
})
|
})
|
||||||
|
|
||||||
// Web manifest
|
// Web manifest
|
||||||
|
4
main.go
4
main.go
@ -5,7 +5,7 @@ import (
|
|||||||
"github.com/aerogo/api"
|
"github.com/aerogo/api"
|
||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
"github.com/animenotifier/notify.moe/auth"
|
"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/layout"
|
||||||
"github.com/animenotifier/notify.moe/middleware"
|
"github.com/animenotifier/notify.moe/middleware"
|
||||||
"github.com/animenotifier/notify.moe/pages/admin"
|
"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")
|
app.Security.Load("security/fullchain.pem", "security/privkey.pem")
|
||||||
|
|
||||||
// CSS
|
// CSS
|
||||||
app.SetStyle(components.CSS())
|
app.SetStyle(css.Bundle())
|
||||||
|
|
||||||
// Sessions
|
// Sessions
|
||||||
app.Sessions.Duration = 3600 * 24
|
app.Sessions.Duration = 3600 * 24
|
||||||
|
Loading…
Reference in New Issue
Block a user