rollback last two Swagger commits

ref #131
This commit is contained in:
Collin Barrett 2018-06-06 19:37:05 -05:00
parent efa298b317
commit 4460ced649
2 changed files with 0 additions and 8 deletions

View file

@ -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();

View file

@ -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;