more hacky Swagger URL fixes

ref #131
This commit is contained in:
Collin M. Barrett 2018-06-06 19:15:20 -05:00
parent 4d31608d7c
commit fd18564452

View file

@ -4,8 +4,12 @@
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;