Minor updates
This commit is contained in:
parent
9bfc6d570a
commit
c8c62888ad
@ -1,5 +1,5 @@
|
|||||||
component Layout(content string)
|
component Layout(content string)
|
||||||
html
|
html(lang="en")
|
||||||
head
|
head
|
||||||
title notify.moe - Beta
|
title notify.moe - Beta
|
||||||
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
|
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
|
||||||
|
9
main.go
9
main.go
@ -7,7 +7,6 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components"
|
||||||
"github.com/animenotifier/notify.moe/pages/airing"
|
"github.com/animenotifier/notify.moe/pages/airing"
|
||||||
"github.com/animenotifier/notify.moe/pages/anime"
|
"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/forum"
|
||||||
"github.com/animenotifier/notify.moe/pages/forums"
|
"github.com/animenotifier/notify.moe/pages/forums"
|
||||||
"github.com/animenotifier/notify.moe/pages/genre"
|
"github.com/animenotifier/notify.moe/pages/genre"
|
||||||
@ -34,7 +33,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ajax routes
|
// 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", search.Get)
|
||||||
app.Ajax("/anime/:id", anime.Get)
|
app.Ajax("/anime/:id", anime.Get)
|
||||||
app.Ajax("/genres", genres.Get)
|
app.Ajax("/genres", genres.Get)
|
||||||
@ -47,6 +48,10 @@ func main() {
|
|||||||
app.Ajax("/airing", airing.Get)
|
app.Ajax("/airing", airing.Get)
|
||||||
app.Ajax("/users", users.Get)
|
app.Ajax("/users", users.Get)
|
||||||
|
|
||||||
|
app.Get("/manifest.json", func(ctx *aero.Context) string {
|
||||||
|
return ctx.JSON(app.Config.Manifest)
|
||||||
|
})
|
||||||
|
|
||||||
// Scripts
|
// Scripts
|
||||||
scripts, _ := ioutil.ReadFile("temp/scripts.js")
|
scripts, _ := ioutil.ReadFile("temp/scripts.js")
|
||||||
js := string(scripts)
|
js := string(scripts)
|
||||||
|
Loading…
Reference in New Issue
Block a user