routes.SetupStatisticsRoutes
This commit is contained in:
5
main.go
5
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))
|
||||
|
||||
Reference in New Issue
Block a user