Skip to content

Commit 4633eff

Browse files
authoredAug 25, 2017
Merge pull request #328 from viliam-jobko/fix-routerRedirectOptionalCodeDocs
Fixing JSDoc on redirect method to show code param as optional
2 parents 83576a6 + d75a165 commit 4633eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Router.prototype.all = function (name, path, middleware) {
502502
*
503503
* @param {String} source URL or route name.
504504
* @param {String} destination URL or route name.
505-
* @param {Number} code HTTP status code (default: 301).
505+
* @param {Number=} code HTTP status code (default: 301).
506506
* @returns {Router}
507507
*/
508508

0 commit comments

Comments
 (0)
Please sign in to comment.