We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi guys,
I just wanted to check if I can add a root path to all the express routes ?
In express, the similar can be achieved using the below code
app.use('/api/v1', allRoutes);
So basically, any route like /product/:id would become /api/v1/product/:id.
/product/:id
/api/v1/product/:id
I tried doing something similar using middlewares but unfortunately it didnt work
{ id: 'root-path', url: '/api/v1', method: ["GET", "POST", "PUT", "PATCH"], variants: [ { id: 'enabled', response: (req, res, next) => next(), }, ], },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys,
I just wanted to check if I can add a root path to all the express routes ?
In express, the similar can be achieved using the below code
app.use('/api/v1', allRoutes);
So basically, any route like
/product/:id
would become/api/v1/product/:id
.I tried doing something similar using middlewares but unfortunately it didnt work
The text was updated successfully, but these errors were encountered: