updated api layout
ready for heroku deployment