I need to catch all routes, except those that have /api/ segment in them. I know how to catch every single route
Route::any(\'{all}\', \'AngularController@serveF
You can catch all routes where the path does not start with api
api
Route::any('{all}', 'AngularController@serveFrontend')->where('all', '^(?!api).*$');
Or simply leave your catchall as the last route and it'll work as expected.