-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route cannot be reused with different path #12
Comments
@yarsky-tgz Hi. Try like this const router = connect();
// Now it's like Express API, exactly isn't working nanoexpress Layers anymore
// and `async` functions doesn't work like nanoexpress and WebSocket doesn't supports
router.get('/', (req, res) => {
res.send();
});
app.use('/auth/api', router);
app.use('/', router); Thanks to @mrauhu for this solution |
Hi @yarsky-tgz Please try |
It's works on nanoexpress v8 release and seems enough stable as i'm used this on production, works fine |
We found such hackish solution for now (
oldRoute
is function which configures router):waiting for better solution
The text was updated successfully, but these errors were encountered: