mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
change swagger location
This commit is contained in:
parent
a5b3b0fc2c
commit
670e4b9cf2
2 changed files with 6 additions and 2 deletions
2
.github/README.md
vendored
2
.github/README.md
vendored
|
|
@ -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/) | |
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue