Skip to content

Commit

Permalink
docs: fix typos in README (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzsayhi authored Dec 28, 2024
1 parent 405da24 commit a46e1ec
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 @@ -93,7 +93,7 @@ func main() {
}

// register middleware
engine.Use(handlerMiddleWare(authMiddleware))
engine.Use(handlerMiddleware(authMiddleware))

// register route
registerRoute(engine, authMiddleware)
Expand All @@ -113,7 +113,7 @@ func registerRoute(r *gin.Engine, handle *jwt.GinJWTMiddleware) {
auth.GET("/hello", helloHandler)
}

func handlerMiddleWare(authMiddleware *jwt.GinJWTMiddleware) gin.HandlerFunc {
func handlerMiddleware(authMiddleware *jwt.GinJWTMiddleware) gin.HandlerFunc {
return func(context *gin.Context) {
errInit := authMiddleware.MiddlewareInit()
if errInit != nil {
Expand Down

0 comments on commit a46e1ec

Please sign in to comment.