Skip to content

Commit

Permalink
fix example
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 7fd5039 commit 20e9d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/custom/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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 20e9d4c

Please sign in to comment.