change to terminal middleware to make the path not matter (due to differences in webapps)

This commit is contained in:
Elijah R 2024-01-03 18:16:49 -05:00
parent ee387ac9cc
commit 540fa027fa

View file

@ -47,7 +47,11 @@ public class HTTPServer
this.app.UseWebSockets();
this.app.Lifetime.ApplicationStarted.Register(this.OnServerStarted);
this.app.Lifetime.ApplicationStopping.Register(this.OnServerStopping);
this.app.MapGet("/", HandleRequest);
this.app.Use(async (c, next) =>
{
await this.HandleRequest(c);
await next();
});
}
private async void OnServerStopping()