Slowly moving away from stylus to scarlet
This commit is contained in:
@ -4,12 +4,11 @@ import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/jobs"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
airingAnimeCache := new(jobs.AiringAnimeCache)
|
||||
airingAnimeCache := new(arn.AiringAnimeCache)
|
||||
err := arn.GetObject("Cache", "airingAnime", airingAnimeCache)
|
||||
|
||||
if err != nil {
|
||||
|
@ -12,7 +12,7 @@ func Get(ctx *aero.Context) string {
|
||||
genre, err := arn.GetGenre(genreName)
|
||||
|
||||
if err != nil {
|
||||
return err.Error()
|
||||
return ctx.Error(404, "Genre not found", err)
|
||||
}
|
||||
|
||||
return ctx.HTML(components.Genre(genre))
|
||||
|
2
pages/test.pixy
Normal file
2
pages/test.pixy
Normal file
@ -0,0 +1,2 @@
|
||||
component Test(msg string)
|
||||
h1= msg
|
Reference in New Issue
Block a user