修改了seageer
This commit is contained in:
@@ -7,16 +7,16 @@
|
|||||||
"sslPort": 44388
|
"sslPort": 44388
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//"$schema": "http://json.schemastore.org/launchsettings.json",
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
//"profiles": {
|
"profiles": {
|
||||||
// "IIS Express": {
|
"IIS Express": {
|
||||||
// "commandName": "IISExpress",
|
"commandName": "IISExpress",
|
||||||
// "launchBrowser": true,
|
"launchBrowser": true,
|
||||||
// "launchUrl": "swagger",
|
"launchUrl": "swagger",
|
||||||
// "environmentVariables": {
|
"environmentVariables": {
|
||||||
// "ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
"WMS.Web.Api": {
|
"WMS.Web.Api": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"launchBrowser": false,
|
"launchBrowser": false,
|
||||||
|
|||||||
@@ -70,12 +70,14 @@ namespace WMS.Web.Api
|
|||||||
// SwaggerUI
|
// SwaggerUI
|
||||||
app.UseSwaggerUI(c =>
|
app.UseSwaggerUI(c =>
|
||||||
{
|
{
|
||||||
c.SwaggerEndpoint($"/swagger/v1/swagger.json", "WMS-Api");
|
c.SwaggerEndpoint($"/swagger/v1/swagger1.json", "WMS-Api");
|
||||||
c.RoutePrefix = string.Empty;
|
c.RoutePrefix = string.Empty;
|
||||||
c.DocExpansion(DocExpansion.None);
|
c.DocExpansion(DocExpansion.None);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///swagger/v1/swagger.json <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
app.UseCors("AllowAllOrigin");
|
app.UseCors("AllowAllOrigin");
|
||||||
|
|||||||
Reference in New Issue
Block a user