New statistics related models and handlers.

This commit is contained in:
2025-10-22 20:58:25 +01:00
parent 8d06a7a962
commit 752db0b89d
7 changed files with 358 additions and 1 deletions

13
routes/statisticroutes.go Normal file
View File

@@ -0,0 +1,13 @@
package routes
import (
"database/sql"
"net/http"
handlers "synlotto-website/handlers/statistics"
"synlotto-website/middleware"
)
func SetupStatisticsRoutes(mux *http.ServeMux, db *sql.DB) {
mux.HandleFunc("/statistics/thunderball", middleware.Auth(true)(handlers.StatisticsThunderball(db)))
}