From 7597fff8b1811131f9e556a6b2740151c30be0f6 Mon Sep 17 00:00:00 2001 From: H3ALY Date: Wed, 22 Oct 2025 20:56:04 +0100 Subject: [PATCH] routes.SetupStatisticsRoutes --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))