D
D
Danil2016-05-31 10:55:12
JavaScript
Danil, 2016-05-31 10:55:12

Calling another route?

Is it possible, when processing one route, to make a request from it to another? For example:

route.get('/search/:query', function(req, res) {
   //POST запрос к другому роуту тут и работа с его ответом
})

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question