In the v6 release, the new built-in /api/ route feature has broken all of my routes (beginning with api unfortunately!), is there any way to disable the built-in feature route generation or possibly rename this /api route to something else?
Info about the New /api route.
Is /api
hard coded into the [Route] path? as it shouldn’t be registered if your App is hosted on a custom path.
Can be changed with:
ConfigurePlugin<PredefinedRoutesFeature>(feature =>
feature.JsonApiRoute = "/custom/{Request}");
Or prevented from being registered with:
ConfigurePlugin<PredefinedRoutesFeature>(feature => feature.JsonApiRoute = null);
Yeah, they’re hard-coded routes. Thanks for the information, incredible support as always!
1 Like