Add PUT and POST api routes