V
V
Vladimir2017-03-30 22:20:46
JavaScript
Vladimir, 2017-03-30 22:20:46

How to send two Post to one URL?

How to send two different POST requests to the same URL in node.js? individually requests work, but if you specify two

app.post('/List', isLoggedIn, require('./List').add);
app.post('/List', isLoggedIn, require('./List').task);

then the first request is always executed, it does not reach the second one, and is it possible to send it like this at all? How to force it to execute the necessary request/method?

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