New genre overview
This commit is contained in:
14
main.go
14
main.go
@ -5,6 +5,12 @@ import (
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"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/genre"
|
||||
"github.com/animenotifier/notify.moe/pages/genres"
|
||||
"github.com/animenotifier/notify.moe/pages/threads"
|
||||
)
|
||||
|
||||
var app = aero.New()
|
||||
@ -28,5 +34,13 @@ func main() {
|
||||
return components.Layout(content)
|
||||
}
|
||||
|
||||
app.Ajax("/", dashboard.Get)
|
||||
app.Ajax("/anime/:id", anime.Get)
|
||||
app.Ajax("/genres", genres.Get)
|
||||
app.Ajax("/genres/:name", genre.Get)
|
||||
app.Ajax("/forum", forum.Get)
|
||||
app.Ajax("/forum/:tag", forum.Get)
|
||||
app.Ajax("/threads/:id", threads.Get)
|
||||
|
||||
app.Run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user