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