changed api route from / to /api/