mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
Correct route for swagger endpoint
This commit is contained in:
@@ -120,7 +120,10 @@ app.UseSwagger(opts =>
|
|||||||
opts.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0;
|
opts.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0;
|
||||||
opts.RouteTemplate = "swagger/{documentName}/swagger.json";
|
opts.RouteTemplate = "swagger/{documentName}/swagger.json";
|
||||||
});
|
});
|
||||||
app.UseSwaggerUI();
|
app.UseSwaggerUI(opts =>
|
||||||
|
{
|
||||||
|
opts.SwaggerEndpoint("/swagger/v2/swagger.json", "v2");
|
||||||
|
});
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user