Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.Redirect = function Redirect(){
- express.Request.prototype.redirect = function(){
- // ...
- }
- express.Server
- .addListener('request', function(request){
- // if we dont have plugin instances, then
- // pretty much have to start plunking props
- // on request for state
- request.redirect = request.redirect || {}
- request.redirect.home = ...
- })
- }
Add Comment
Please, Sign In to add comment