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…
Reference in New Issue
Block a user