angularjs - can I have two .post requests resolving to same api endpoint?
问题 I apologise if this is a stupid question, please allow me to explain a little. I am running a MEAN application. In the server routes for my CRUD generated module I have included two separate post requests to the same api end point. app.route('/api/tasks/:taskId').all(tasksPolicy.isAllowed) .get(tasks.read) .put(tasks.update) .delete(tasks.delete) .post(tasks.newCo) .post(tasks.newOffer); Each of these perform a separate push request into my mongo document for task, based on the taskId. When I