added /api/ to api routes