21 lines
535 B
Go
21 lines
535 B
Go
package routes
|
|
|
|
import (
|
|
stats "synlotto-website/internal/handlers/statistics"
|
|
|
|
"synlotto-website/internal/http/middleware"
|
|
"synlotto-website/internal/platform/bootstrap"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// RegisterStatisticsRoutes mounts protected statistics endpoints under /statistics.
|
|
func RegisterStatisticsRoutes(app *bootstrap.App) {
|
|
r := app.Router
|
|
|
|
group := r.Group("/statistics")
|
|
group.Use(middleware.AuthMiddleware(), middleware.RequireAuth())
|
|
|
|
group.GET("/thunderball", gin.WrapH(stats.StatisticsThunderball(app)))
|
|
}
|