Closed as not planned
Closed as not planned
Description
In the React SPA template there is a file setupProxy.js
that seems to control which client HTTP requests get routed to ASP.NET Core (or not):
I found it a bit cumbersome to have to edit that file when I added new APIs. I ended up grouping all my APIs into /api
so that I could just add one entry:
const context = [
"/weatherforecast",
"/api",
];
Would it make sense to have some common prefix such as /api
so that many common scenarios would just work without having to edit this file?