feat: setup spa proxy when develop backend server
This commit is contained in:
@@ -106,11 +106,9 @@ try
|
||||
app.UseCors();
|
||||
app.UseAuthorization();
|
||||
|
||||
// if (app.Environment.IsDevelopment())
|
||||
// {
|
||||
// Swagger
|
||||
app.UseOpenApi();
|
||||
app.UseSwaggerUi();
|
||||
// }
|
||||
|
||||
// Router
|
||||
app.MapControllers();
|
||||
|
@@ -1,6 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Import Project="PublishAllRids.xml" />
|
||||
<!-- <Import Project="PublishSPA.xml" /> -->
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
|
Reference in New Issue
Block a user