mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Remove legacy API route middleware (#15669)
This commit is contained in:
parent
428beda1c7
commit
6b6d54a07c
3 changed files with 0 additions and 69 deletions
|
|
@ -117,18 +117,5 @@ namespace Jellyfin.Server.Extensions
|
|||
{
|
||||
return appBuilder.UseMiddleware<RobotsRedirectionMiddleware>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds /emby and /mediabrowser route trimming to the application pipeline.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This must be injected before any path related middleware.
|
||||
/// </remarks>
|
||||
/// <param name="appBuilder">The application builder.</param>
|
||||
/// <returns>The updated application builder.</returns>
|
||||
public static IApplicationBuilder UsePathTrim(this IApplicationBuilder appBuilder)
|
||||
{
|
||||
return appBuilder.UseMiddleware<LegacyEmbyRouteRewriteMiddleware>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,9 +173,6 @@ namespace Jellyfin.Server
|
|||
mainApp.UseHttpsRedirection();
|
||||
}
|
||||
|
||||
// This must be injected before any path related middleware.
|
||||
mainApp.UsePathTrim();
|
||||
|
||||
if (appConfig.HostWebClient())
|
||||
{
|
||||
var extensionProvider = new FileExtensionContentTypeProvider();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue