From 670e4b9cf2b9c74f2a927da2b195246dd924bed4 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 29 Oct 2017 19:01:43 -0500 Subject: [PATCH] change swagger location --- .github/README.md | 2 +- src/FilterLists.Api/Startup.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index d17560b47..42c09cc56 100644 --- a/.github/README.md +++ b/.github/README.md @@ -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/) | | diff --git a/src/FilterLists.Api/Startup.cs b/src/FilterLists.Api/Startup.cs index aaa8bae3c..3212e1a1b 100644 --- a/src/FilterLists.Api/Startup.cs +++ b/src/FilterLists.Api/Startup.cs @@ -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();