Address comments

This commit is contained in:
crobibero 2020-04-23 21:24:40 -06:00
parent 3c34d95608
commit be50fae38a
2 changed files with 2 additions and 11 deletions

View File

@ -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>();
}
}
}

View File

@ -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();