Hi, I am a beginner in node and I was just wondering how node js knows which app.delete corresponds to which ajax request. Suppose on my website I have two buttons one deletes only one item and the other one deletes all items. Then on my server I have two app.delete one deletes one item from the database and the other one deletes all items. How does node know that when I click the button to delete all items, that it is supposed to perform the task under the app.delete which deletes all items. Thanks in advance :)
Submitted May 27, 2018 at 08:35AM by everek123
No comments:
Post a Comment