Skip to content

Commit ba413ee

Browse files
committed
added another res.redirect() example
1 parent acc0e93 commit ba413ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/response.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ res.cookie = function(name, val, options){
491491
* res.redirect('/foo/bar');
492492
* res.redirect('http://example.com');
493493
* res.redirect(301, 'http://example.com');
494+
* res.redirect('../login'); // /blog/post/1 -> /blog/login
494495
*
495496
* Mounting:
496497
*

0 commit comments

Comments
 (0)