Address comments

pull/2952/head
crobibero 5 years ago
parent 3c34d95608
commit be50fae38a

@ -24,15 +24,5 @@ namespace Jellyfin.Server.Extensions
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.Middleware;
using MediaBrowser.Controller;
using MediaBrowser.Controller.Configuration;
using Microsoft.AspNetCore.Builder;
@ -58,7 +59,7 @@ namespace Jellyfin.Server
app.UseDeveloperExceptionPage();
}
app.UseExceptionMiddleware();
app.UseMiddleware<ExceptionMiddleware>();
app.UseWebSockets();

Loading…
Cancel
Save