Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alimy authored Mar 6, 2020
1 parent 168c4de commit aab67d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func RegisterSiteServant(e *gin.Engine, s Site) {
router := e

// use chain for router
handlersChain := s.Chain()
router.Use(handlersChain...)
middlewares := s.Chain()
router.Use(middlewares...)

// register route info to router
router.Handle("GET", "/index/", s.Index)
Expand Down

0 comments on commit aab67d8

Please sign in to comment.