mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
57f4685837
commit
768cedbb7b
1 changed files with 2 additions and 2 deletions
|
|
@ -64,12 +64,12 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
|||
#if RELEASE
|
||||
c.PreSerializeFilters.Add((swaggerDoc, httpReq) => swaggerDoc.BasePath = "/api");
|
||||
#endif
|
||||
c.RouteTemplate = "/docs/{documentName}/swagger.json";
|
||||
c.RouteTemplate = "docs/{documentName}/swagger.json";
|
||||
UseLowercaseControllerNameInSwaggerHack(c);
|
||||
});
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.SwaggerEndpoint("/docs/v1/swagger.json", "FilterLists API v1");
|
||||
c.SwaggerEndpoint("v1/swagger.json", "FilterLists API v1");
|
||||
c.DocumentTitle = "FilterLists API v1";
|
||||
c.RoutePrefix = "docs";
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue