try swagger fix again

ref #131
This commit is contained in:
Collin M. Barrett 2018-06-07 14:24:52 -05:00
parent 70287819dc
commit 8f5868b402

View file

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