Clean up api Init

pull/23/head
maru 7 months ago
parent cd13fe3cff
commit b113ffceee
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -30,10 +30,13 @@ import (
) )
func Init(mux *http.ServeMux) error { func Init(mux *http.ServeMux) error {
if err := scheduleStatRefresh(); err != nil { err := scheduleStatRefresh()
if err != nil {
return err return err
} }
if err := daily.Init(); err != nil {
err = daily.Init()
if err != nil {
return err return err
} }
@ -65,6 +68,7 @@ func Init(mux *http.ServeMux) error {
mux.HandleFunc("GET /daily/seed", handleDailySeed) mux.HandleFunc("GET /daily/seed", handleDailySeed)
mux.HandleFunc("GET /daily/rankings", handleDailyRankings) mux.HandleFunc("GET /daily/rankings", handleDailyRankings)
mux.HandleFunc("GET /daily/rankingpagecount", handleDailyRankingPageCount) mux.HandleFunc("GET /daily/rankingpagecount", handleDailyRankingPageCount)
return nil return nil
} }

Loading…
Cancel
Save