Minor updates

This commit is contained in:
Eduard Urbach 2017-06-01 15:38:08 +02:00
parent 9bfc6d570a
commit c8c62888ad
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
component Layout(content string)
html
html(lang="en")
head
title notify.moe - Beta
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")

View File

@ -7,7 +7,6 @@ import (
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/pages/airing"
"github.com/animenotifier/notify.moe/pages/anime"
"github.com/animenotifier/notify.moe/pages/dashboard"
"github.com/animenotifier/notify.moe/pages/forum"
"github.com/animenotifier/notify.moe/pages/forums"
"github.com/animenotifier/notify.moe/pages/genre"
@ -34,7 +33,9 @@ func main() {
}
// Ajax routes
app.Ajax("/", dashboard.Get)
app.Ajax("/", func(ctx *aero.Context) string {
return ctx.HTML("ARN 4.0 is currently under construction.<br><a href='https://paypal.me/blitzprog' target='_blank' rel='noopener'>Support the development</a>")
})
app.Ajax("/anime", search.Get)
app.Ajax("/anime/:id", anime.Get)
app.Ajax("/genres", genres.Get)
@ -47,6 +48,10 @@ func main() {
app.Ajax("/airing", airing.Get)
app.Ajax("/users", users.Get)
app.Get("/manifest.json", func(ctx *aero.Context) string {
return ctx.JSON(app.Config.Manifest)
})
// Scripts
scripts, _ := ioutil.ReadFile("temp/scripts.js")
js := string(scripts)