Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

express.js example is out of date #327

Closed
pmanijak opened this issue May 9, 2016 · 0 comments
Closed

express.js example is out of date #327

pmanijak opened this issue May 9, 2016 · 0 comments

Comments

@pmanijak
Copy link
Contributor

pmanijak commented May 9, 2016

There are a few places where this file (examples/express.js) is out of date.

Express 4:

  • express.createServer() has been deprecated
  • passing the status via send() has been deprecated
  • convention is to use 'req' and 'res' instead of
    'request' and 'response'

Nano 6:

  • error['status-code'] is now error.statusCode

Also there was a syntax error (too many curly braces), and expressjs.org no longer exists / it is expressjs.com.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants