소스 검색

Add Redoc, move docs to api-docs/

crobibero 5 년 전
부모
커밋
e72a543570
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs

+ 2 - 0
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";
                 });
         }
     }