Skip to content

Commit

Permalink
Merge pull request #7 from hubot-friends/dont-change-req-resp
Browse files Browse the repository at this point in the history
feat: Remove heavy reliance on prototype chaining on the req/res pair
  • Loading branch information
joeyguerra authored Jan 6, 2024
2 parents 90d3ae7 + 702007c commit 0c2fa05
Show file tree
Hide file tree
Showing 20 changed files with 3,561 additions and 2,170 deletions.
4 changes: 2 additions & 2 deletions examples/vhost/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ redirect.use(function(req, res){

var app = module.exports = express();

app.use(vhost('*.example.com', redirect)); // Serves all subdomains via Redirect app
app.use(vhost('example.com', main)); // Serves top level domain via Main server app
app.use(vhost('*.example.com', redirect.handle.bind(redirect))); // Serves all subdomains via Redirect app
app.use(vhost('example.com', main.handle.bind(main))); // Serves top level domain via Main server app

/* istanbul ignore next */
if (!require.main) {
Expand Down
Loading

0 comments on commit 0c2fa05

Please sign in to comment.