|
|
@ -17,7 +17,8 @@ namespace Jellyfin.Server.Extensions
|
|
|
|
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
|
|
|
|
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
|
|
|
|
// specifying the Swagger JSON endpoint.
|
|
|
|
// specifying the Swagger JSON endpoint.
|
|
|
|
const string specEndpoint = "/swagger/v1/swagger.json";
|
|
|
|
const string specEndpoint = "/swagger/v1/swagger.json";
|
|
|
|
return applicationBuilder.UseSwagger()
|
|
|
|
return applicationBuilder
|
|
|
|
|
|
|
|
.UseSwagger()
|
|
|
|
.UseSwaggerUI(c =>
|
|
|
|
.UseSwaggerUI(c =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
c.SwaggerEndpoint(specEndpoint, "Jellyfin API V1");
|
|
|
|
c.SwaggerEndpoint(specEndpoint, "Jellyfin API V1");
|
|
|
|