Skip to content

Implement route() function #42

@botic

Description

@botic

Implement a route function to make something like this (new in Express 4.0) possible:

app.route('/myroute')
.all(function(req) {
  // runs for all HTTP verbs first
  // think of it as route specific middleware!
})
.get(function(req) {
  return response.json({});
})
.post(function(req) {
  // some code
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions