Skip to content

Commit

Permalink
doc: be more precise about the behavior of middleware on the router
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinewyk committed Apr 26, 2020
1 parent 9f2ed5f commit 01c2fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Returns router middleware which dispatches a route matching the request.
<a name="module_koa-router--Router+use"></a>

#### router.use([path], middleware) ⇒ <code>Router</code>
Use given middleware.
Use given middleware, __if and only if__, a route is matched.

Middleware run in the order they are defined by `.use()`. They are invoked
sequentially, requests start at the first middleware and work their way
Expand Down

0 comments on commit 01c2fc7

Please sign in to comment.