get rid of the app directory and reunite all endpoints in server.js