You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
});
The text was updated successfully, but these errors were encountered:
Implement a route function to make something like this (new in Express 4.0) possible:
The text was updated successfully, but these errors were encountered: