diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
commit | fd1332a3df191577e91c6d846a8b5db1747099fd (patch) | |
tree | b3f045cd06d6622e23441b442e8f3861050ed444 /api | |
parent | cc49361bcbf689510035e7bbdcce9d8467a36282 (diff) |
cleanup
Diffstat (limited to 'api')
-rw-r--r-- | api/internal/router/router.go | 8 |
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) |