debugging relative swagger-ui routing
This commit is contained in:
@@ -46,8 +46,15 @@ else
|
|||||||
{
|
{
|
||||||
app.UseResponseCompression();
|
app.UseResponseCompression();
|
||||||
}
|
}
|
||||||
app.UseSwagger();
|
app.UseSwagger(options =>
|
||||||
app.UseSwaggerUI(options => options.DocumentTitle = "Shogi.Api");
|
{
|
||||||
|
});
|
||||||
|
app.UseSwaggerUI(options =>
|
||||||
|
{
|
||||||
|
options.RoutePrefix = "swagger";
|
||||||
|
options.SwaggerEndpoint("v1/swagger.json", "My API V1");
|
||||||
|
options.DocumentTitle = "Shogi.Api";
|
||||||
|
});
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
app.Map("/", () => "OK");
|
app.Map("/", () => "OK");
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|||||||
Reference in New Issue
Block a user