Fix images not working, using MapFallback had further unwanted changes

This commit is contained in:
CWX
2025-02-28 18:37:26 +00:00
parent d8d732f270
commit ee0f8e2906
+6 -1
View File
@@ -61,7 +61,12 @@ public class HttpServer(
KeepAliveInterval = TimeSpan.FromSeconds(60)
});
app.MapFallback(HandleFallback);
app?.Use(
(HttpContext req, RequestDelegate _) =>
{
return Task.Factory.StartNew(async () => await HandleFallback(req));
}
);
_started = true;