mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add Redoc, move docs to api-docs/
This commit is contained in:
parent
8a7e4cd639
commit
e72a543570
@ -21,10 +21,12 @@ namespace Jellyfin.Server.Extensions
|
|||||||
.UseSwaggerUI(c =>
|
.UseSwaggerUI(c =>
|
||||||
{
|
{
|
||||||
c.SwaggerEndpoint(specEndpoint, "Jellyfin API V1");
|
c.SwaggerEndpoint(specEndpoint, "Jellyfin API V1");
|
||||||
|
c.RoutePrefix = "api-docs/swagger";
|
||||||
})
|
})
|
||||||
.UseReDoc(c =>
|
.UseReDoc(c =>
|
||||||
{
|
{
|
||||||
c.SpecUrl(specEndpoint);
|
c.SpecUrl(specEndpoint);
|
||||||
|
c.RoutePrefix = "api-docs/redoc";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user