mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
5f73d1eed7
commit
9c0f32fce6
1 changed files with 4 additions and 0 deletions
|
|
@ -57,7 +57,11 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
|||
app.UseSwagger(UseLowercaseControllerNameInSwaggerHack);
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
#if DEBUG
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "FilterLists API V1");
|
||||
#else
|
||||
c.SwaggerEndpoint("/api/swagger/v1/swagger.json", "FilterLists API V1");
|
||||
#endif
|
||||
c.RoutePrefix = "docs";
|
||||
});
|
||||
app.UseHttpsRedirection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue