mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
efa298b317
commit
4460ced649
2 changed files with 0 additions and 8 deletions
|
|
@ -57,11 +57,7 @@ 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();
|
||||
|
|
|
|||
|
|
@ -4,12 +4,8 @@
|
|||
namespace FilterLists.Api.V1.Controllers
|
||||
{
|
||||
[ApiVersion("1.0")]
|
||||
#if DEBUG
|
||||
//https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/370
|
||||
[Route("v{version:apiVersion}/[controller]")]
|
||||
#else
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
#endif
|
||||
public class BaseController : Controller
|
||||
{
|
||||
protected readonly SeedService SeedService;
|
||||
|
|
|
|||
Loading…
Reference in a new issue