change swagger location

This commit is contained in:
Collin M. Barrett 2017-10-29 19:01:43 -05:00
parent a5b3b0fc2c
commit 670e4b9cf2
2 changed files with 6 additions and 2 deletions

2
.github/README.md vendored
View file

@ -11,7 +11,7 @@ FilterLists is the independent and comprehensive directory of all public filter
## Links
| Site | API |
| ------------------------------------------- | ------------------------------------------------- |
| [v3 (Alpha)](https://beta.filterlists.com/) | [v1 (Alpha)](https://api.filterlists.com/swagger) |
| [v3 (Alpha)](https://beta.filterlists.com/) | [v1 (Alpha)](https://api.filterlists.com/docs) |
| [v2 (Stable)](https://filterlists.com/) | |
| [v1 (Legacy)](https://v1.filterlists.com/) | |

View file

@ -30,7 +30,11 @@ public void Configure(IApplicationBuilder app)
});
app.UseSwagger();
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "FilterLists API V1"); });
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/v1/swagger.json", "FilterLists API V1");
c.RoutePrefix = "docs";
});
app.UseStaticFiles();