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
fix: #44
  • Loading branch information
Sinewyk committed Apr 21, 2020
1 parent 9f2ed5f commit 6b30865
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. Context: [bug report](https:/ZijianHe/koa-router/issues/182) & [test](https:/koajs/router/blob/2e69eca36739171ee23dde9f616a133488378a62/test/lib/router.js#L197-L222)

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 6b30865

Please sign in to comment.