Will be managing this data: In data.js



Now, I will use post on same data. The files that are needed for this are provided in the github repo.
We will use the methods-public folder like this:

This will give us the basic code that is needed, for the UI.


In the form the action is ‘/login’ and the method is POST. This is a form for POST request.
If I try to simply send the post request:

This is because I have not made the /login API yet. So, in the console:

You can see we got 404 Not Found.