Added basic AMV routes
This commit is contained in:
@ -2,9 +2,20 @@ package amvs
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Get AMVs.
|
||||
func Get(ctx *aero.Context) string {
|
||||
return ctx.HTML("Coming soon™.")
|
||||
// Latest AMVs.
|
||||
func Latest(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
return ctx.HTML(components.AMVs(nil, -1, "", user))
|
||||
}
|
||||
|
||||
// Best AMVs.
|
||||
func Best(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
return ctx.HTML(components.AMVs(nil, -1, "", user))
|
||||
}
|
||||
|
Reference in New Issue
Block a user