Remove unused middleware

This commit is contained in:
Pat Hartl 2025-03-12 01:08:42 -05:00
parent 444bc9d4bc
commit bbf2e9cba7

View file

@ -1,26 +0,0 @@
using LANCommander.Server.Services;
namespace LANCommander.Server
{
public class ApiMiddleware
{
private readonly RequestDelegate Next;
public ApiMiddleware(RequestDelegate next)
{
Next = next;
}
public async Task InvokeAsync(HttpContext context)
{
context.Response.OnStarting(() =>
{
context.Response.Headers["X-API-Version"] = UpdateService.GetCurrentVersion().ToString();
return Task.CompletedTask;
});
await Next(context);
}
}
}