aboutsummaryrefslogtreecommitdiff
path: root/api/internal/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/internal/router/router.go')
-rw-r--r--api/internal/router/router.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/internal/router/router.go b/api/internal/router/router.go
index 3c86b8c..a71c3e6 100644
--- a/api/internal/router/router.go
+++ b/api/internal/router/router.go
@@ -30,10 +30,10 @@ func SetupRouter() *gin.Engine {
30 stats := api.Group("/stats") 30 stats := api.Group("/stats")
31 stats.Use(middleware.TokenRequired()) 31 stats.Use(middleware.TokenRequired())
32 { 32 {
33 stats.GET("/", controllers.GetAllStatistics) 33 stats.GET("", controllers.GetAllStatistics)
34 stats.POST("/", controllers.PostNewStatistic) 34 stats.POST("", controllers.PostNewStatistic)
35 stats.GET("weekly/", controllers.GetWeeklyStatistics) 35 stats.GET("weekly", controllers.GetWeeklyStatistics)
36 stats.GET("daily/", controllers.GetDailyUserStatistics) 36 stats.GET("daily", controllers.GetDailyUserStatistics)
37 stats.GET("user/:uuid", controllers.GetUserStatistics) 37 stats.GET("user/:uuid", controllers.GetUserStatistics)
38 stats.PATCH("user/:uuid", controllers.UpdateUserStatistic) 38 stats.PATCH("user/:uuid", controllers.UpdateUserStatistic)
39 stats.DELETE("user/:uuid", controllers.DeleteUserStatistic) 39 stats.DELETE("user/:uuid", controllers.DeleteUserStatistic)