fix swagger paths (think this one finally works)

ref #131
This commit is contained in:
Collin M. Barrett 2018-06-07 14:39:14 -05:00
parent 7df3521f3b
commit 9622ba2276

View file

@ -60,7 +60,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
app.UseMvc();
app.UseSwagger(c =>
{
c.PreSerializeFilters.Add((swaggerDoc, httpReq) => swaggerDoc.Host = httpReq.Host.Value);
c.RouteTemplate = "docs/{documentName}/swagger.json";
UseLowercaseControllerNameInSwaggerHack(c);
});