changed api addresses to /api/*