Guest User

Untitled

a guest
May 24th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. exports.Redirect = function Redirect(){
  3. express.Request.prototype.redirect = function(){
  4. // ...
  5. }
  6. express.Server
  7. .addListener('request', function(request){
  8. // if we dont have plugin instances, then
  9. // pretty much have to start plunking props
  10. // on request for state
  11. request.redirect = request.redirect || {}
  12. request.redirect.home = ...
  13. })
  14. }
Add Comment
Please, Sign In to add comment