Middleware order changed

This commit is contained in:
Manu Mtz-Almeida 2015-05-13 03:36:32 +02:00
parent d05b31ed77
commit 7e6153dc33

View File

@ -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")