Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

examples ->node vhost.js #882

zs1621 opened this Issue Sep 1, 2013 · 1 comment


None yet
2 participants

zs1621 commented Sep 1, 2013


node vhost.js

error as follow:

TypeError: Object function createServer() {
  function app(req, res, next){ app.handle(req, res, next); }
  utils.merge(app, proto);
  utils.merge(app, EventEmitter.prototype);
  app.route = '/';
  app.stack = [];
  for (var i = 0; i < arguments.length; ++i) {
  return app;
} has no method 'router'

router middle had been removed, the example outdated.


jonathanong commented Sep 13, 2013

why not make a PR for an updated example without router?

@jonathanong jonathanong closed this in #918 Oct 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment