Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Apr 23, 2020
1 parent 20e9d4c commit ec17323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import (
func main() {
router := gin.Default()
pprof.Register(router)
adminGroup := r.Group("/admin", func(c *gin.Context) {
adminGroup := router.Group("/admin", func(c *gin.Context) {
if c.Request.Header.Get("Authorization") != "foobar" {
c.AbortWithStatus(http.StatusForbidden)
return
Expand Down

0 comments on commit ec17323

Please sign in to comment.