Cleanup
This commit is contained in:
20
pages/explore/explore.go
Normal file
20
pages/explore/explore.go
Normal file
@ -0,0 +1,20 @@
|
||||
package explore
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Get search page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
animeList, err := arn.GetPopularAnimeCached()
|
||||
|
||||
if err != nil {
|
||||
return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err)
|
||||
}
|
||||
|
||||
return ctx.HTML(components.ExploreAnime(nil, nil, animeList))
|
||||
}
|
Reference in New Issue
Block a user