aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-04-19 11:24:03 -0600
committercrobibero <cody@robibe.ro>2020-04-19 11:24:03 -0600
commite72a543570b59df61f48cb9a4049ab3dc9675250 (patch)
tree5e531fecff8b6f7d1b445a8be9912c663bef846f
parent8a7e4cd639be24eb58385dc7b36b466c3d6aed92 (diff)
Add Redoc, move docs to api-docs/
-rw-r--r--Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs b/Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs
index 2ab9b0ba5..766243f20 100644
--- a/Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs
+++ b/Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs
@@ -21,10 +21,12 @@ namespace Jellyfin.Server.Extensions
.UseSwaggerUI(c =>
{
c.SwaggerEndpoint(specEndpoint, "Jellyfin API V1");
+ c.RoutePrefix = "api-docs/swagger";
})
.UseReDoc(c =>
{
c.SpecUrl(specEndpoint);
+ c.RoutePrefix = "api-docs/redoc";
});
}
}