update api routes

update routes to confirm to frontend requirements