Skip to content

Commit

Permalink
Replace user with ctx.user in param docs (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicu-chiciuc authored Dec 1, 2021
1 parent 90dd73c commit 5cec6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Layer.prototype.url = function (params, options) {
* router
* .param('user', function (id, ctx, next) {
* ctx.user = users[id];
* if (!user) return ctx.status = 404;
* if (!ctx.user) return ctx.status = 404;
* next();
* })
* .get('/users/:user', function (ctx, next) {
Expand Down

0 comments on commit 5cec6fb

Please sign in to comment.