mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Address comments
This commit is contained in:
parent
3c34d95608
commit
be50fae38a
@ -24,15 +24,5 @@ namespace Jellyfin.Server.Extensions
|
|||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Jellyfin API V1");
|
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Jellyfin API V1");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Adds exception middleware to the application pipeline.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="applicationBuilder">The application builder.</param>
|
|
||||||
/// <returns>The updated application builder.</returns>
|
|
||||||
public static IApplicationBuilder UseExceptionMiddleware(this IApplicationBuilder applicationBuilder)
|
|
||||||
{
|
|
||||||
return applicationBuilder.UseMiddleware<ExceptionMiddleware>();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using Jellyfin.Server.Extensions;
|
using Jellyfin.Server.Extensions;
|
||||||
|
using Jellyfin.Server.Middleware;
|
||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
using MediaBrowser.Controller.Configuration;
|
using MediaBrowser.Controller.Configuration;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
@ -58,7 +59,7 @@ namespace Jellyfin.Server
|
|||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseExceptionMiddleware();
|
app.UseMiddleware<ExceptionMiddleware>();
|
||||||
|
|
||||||
app.UseWebSockets();
|
app.UseWebSockets();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user