gin-gonic / website

Official website and document for Gin
https://gin-gonic.com/
MIT License
122 stars 211 forks source link

Using middleware #214

Open dwschulze opened 1 year ago

dwschulze commented 1 year ago

In the Using Middleware Example the code shows a code block after the call to authorized.Use(AuthRequired()).

What is the purpose of putting the code inside its own block? The block seems to be unnecessary.