Skip to content

Commit b34d2d5

Browse files
committed
add request stats middleware
1 parent c859bc6 commit b34d2d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controller/controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ func Run() {
2626
resultController()
2727
registrationController()
2828

29+
router.Use(stats.RequestStats())
30+
2931
router.GET("/actuator", actuator)
3032
router.GET("/stats", func(c *gin.Context) {
3133
c.JSON(http.StatusOK, stats.Report())

0 commit comments

Comments
 (0)