Skip to content

Commit dff5698

Browse files
committed
register stats middleware before endpoints
1 parent b34d2d5 commit dff5698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ func Run() {
2020
return
2121
}
2222

23+
router.Use(stats.RequestStats())
24+
2325
startController()
2426
heatController()
2527
disqualificationController()
2628
resultController()
2729
registrationController()
2830

29-
router.Use(stats.RequestStats())
30-
3131
router.GET("/actuator", actuator)
3232
router.GET("/stats", func(c *gin.Context) {
3333
c.JSON(http.StatusOK, stats.Report())

0 commit comments

Comments
 (0)