Without this, I could do this:
const myRoutes = express.Router()
...
app.use('/my-path', myRoutes)
Now, how can I combine these paths w/ subdomain?
I try:
router.use('/my-path', myRoutes)
app.use(subdomain('api', router))
but doesn't seem to work. Any examples of this?
Without this, I could do this: const myRoutes = express.Router() ... app.use('/my-path', myRoutes)
Now, how can I combine these paths w/ subdomain? I try: router.use('/my-path', myRoutes) app.use(subdomain('api', router)) but doesn't seem to work. Any examples of this?