修改了seageer

This commit is contained in:
2026-05-15 10:44:35 +08:00
parent 08da2651d7
commit 64e1b29fa1
2 changed files with 13 additions and 11 deletions

View File

@@ -7,16 +7,16 @@
"sslPort": 44388
}
},
//"$schema": "http://json.schemastore.org/launchsettings.json",
//"profiles": {
// "IIS Express": {
// "commandName": "IISExpress",
// "launchBrowser": true,
// "launchUrl": "swagger",
// "environmentVariables": {
// "ASPNETCORE_ENVIRONMENT": "Development"
// }
// },
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"WMS.Web.Api": {
"commandName": "Project",
"launchBrowser": false,

View File

@@ -70,12 +70,14 @@ namespace WMS.Web.Api
// SwaggerUI
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint($"/swagger/v1/swagger.json", "WMS-Api");
c.SwaggerEndpoint($"/swagger/v1/swagger1.json", "WMS-Api");
c.RoutePrefix = string.Empty;
c.DocExpansion(DocExpansion.None);
});
}
///swagger/v1/swagger.json <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseCors("AllowAllOrigin");