node-async-router icon indicating copy to clipboard operation
node-async-router copied to clipboard

Replacing express.Router()?

Open jzaefferer opened this issue 6 years ago • 3 comments

Are these two lines equivalent?

var router = require('express').Router()

var router = require('node-async-router')()

If that's correct, its still very simple to replace the built in router (see also https://expressjs.com/en/guide/routing.html#express-router ), but it might also be useful to mention this in the readme.

jzaefferer avatar Feb 02 '18 09:02 jzaefferer