Your job is to implement a faux database of users, by utilizing an array for storing all the users. You also need to think about how to increment the id of a user by having an id counter
GET /
- show all usersGET /users/new
- display a form for making a new userPOST /users/post
- create a user based on params from formGET /users/:id
- show a user's info by their id, this should display the info in a formPUT /users/:id
- update a user's info based on the form from GET /users/:idDELETE /users/:id
- delete a user by their id
Implement all the requests as AJAX requests
In order to do this, you will need to send back JSON instead of an erb template. To send back JSON using Sinatra, see this guide http://www.sinatrarb.com/contrib/json.html.