move api routes to its own obj file