Skip to content

Commit

Permalink
Applied @StarpTech suggestion, emphasized a bit above Note
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystofee committed Oct 15, 2019
1 parent 48201ce commit 093d991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Middleware.md
Expand Up @@ -38,9 +38,9 @@ Fastify middleware also do not expose the `send` method or other methods specifi
#### Restrict middleware execution to a certain path(s)
If you need to run a middleware only under certain path(s), just pass the path as first parameter to `use` and you are done!

*Note that this does not support routes with parameters, (eg: `/user/:id/comments`) and wildcards are not supported in multiple paths.*
The middleware syntax is different from the fastify route syntax. We use [middie](https://github.com/fastify/middie) to support express.js.

**Note**: Wildcard path syntax is different from the fastify routes. (eg: `/css/(.*)` instead of `/css/*`)
*Note that this does not support routes with parameters, (eg: `/user/:id/comments`) and wildcards are not supported in multiple paths.*

```js
const path = require('path')
Expand Down

0 comments on commit 093d991

Please sign in to comment.