Answer the question
In order to leave comments, you need to log in
How to get optional parameters in a route?
NEXTjs.
How to implement getting all route parameters, for example, in such a request
https://www.site.ru/zhenskaja/odezhda/plat-ja?base_color=1461&p=1
server.get('/products/:category', (req, res) => app.render(req, res, '/catalog', {
category: req.params.category,
}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question