Fix the base url to use /api