mirror of https://github.com/gin-gonic/gin.git
Middleware order changed
This commit is contained in:
parent
d05b31ed77
commit
7e6153dc33
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
func main() {
|
||||
router := gin.New()
|
||||
router.Use(ratelimit, gin.Recovery(), gin.Logger())
|
||||
router.Use(gin.Logger(), ratelimit)
|
||||
|
||||
router.LoadHTMLGlob("resources/*.templ.html")
|
||||
router.Static("/static", "resources/static")
|
||||
|
|
Loading…
Reference in New Issue