remove unneeded routing use

This commit is contained in:
CWX
2025-01-17 19:20:23 +00:00
parent 6622f4767c
commit ab6d37bb7f
-2
View File
@@ -53,12 +53,10 @@ public class HttpServer
// enable web socket
app.UseWebSockets();
app.UseRouting();
app.Use((HttpContext req, RequestDelegate _) =>
{
return Task.Factory.StartNew(() => HandleFallback(req));
});
// app.UseEndpoints(endpointBuilder => { endpointBuilder.MapFallback(HandleFallback); });
started = true;
_applicationContext.AddValue(ContextVariableType.WEB_APPLICATION, app);
}