Files
website/internal/http/routes/statisticroutes.go

14 lines
302 B
Go

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)))
}