Ionic serve calls to API with friendly URLs

Ionic serve interprets calls such as /api/organization/1/2/3 by looking for that specific physical path, since it doesn’t understand the apache rewrite rules used by the PHP/Apache based API there. Is there any way to get ionic serve to honor those requests and just pass everything through to the /api/index.php instead? I have CORS enabled, so that is not a problem.