mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 17:29:54 +01:00
usercache
This commit is contained in:
3
ober.go
3
ober.go
@@ -17,6 +17,7 @@ func RunWebserv() {
|
||||
r.GET("/", Headers(Start))
|
||||
r.GET("/api/season", Headers(Season))
|
||||
r.GET("/api/anime/{id}", Headers(AnimeGet))
|
||||
r.GET("/api/user/{id?}", Headers(AnimeGet))
|
||||
r.GET("/api/watch/{user?}", Headers(WatchGet))
|
||||
r.POST("/api/register", Headers(Register))
|
||||
r.POST("/api/watch/{user}", Headers(WatchPost))
|
||||
@@ -39,7 +40,7 @@ func Start(ctx *fasthttp.RequestCtx) {
|
||||
}
|
||||
|
||||
func Season(ctx *fasthttp.RequestCtx) {
|
||||
data, err := cache.Get(seasonApiJikan)
|
||||
data, err := seasoncache.Get(seasonApiJikan)
|
||||
if err != nil {
|
||||
addErrorToCtx(ctx, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user