I have seen the project template from ASP.NET Web Application that uses Angular or React with this syntax on the Starup.cs Angular:
app.UseSpa(spa =>