diff --git a/main.go b/main.go index 3f6c65c..c6367dc 100644 --- a/main.go +++ b/main.go @@ -27,14 +27,14 @@ func main() { logging.LogConfig(appState.Config) db := storage.InitDB("synlotto.db") - models.SetDB(db) // Should be in storage not models. + models.SetDB(db) // ToDo: Should be in storage not models. err = bootstrap.InitSession(appState.Config) if err != nil { logging.Error("❌ Failed to init session: %v", err) } - // if err := bootstrap.InitLicenseChecker(appState.Config); err != nil { + // ToDo: if err := bootstrap.InitLicenseChecker(appState.Config); err != nil { // logging.Error("❌ Invalid license: %v", err) // } @@ -48,6 +48,7 @@ func main() { routes.SetupAccountRoutes(mux, db) routes.SetupResultRoutes(mux, db) routes.SetupSyndicateRoutes(mux, db) + routes.SetupStatisticsRoutes(mux, db) mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) mux.HandleFunc("/", handlers.Home(db))