change to terminal middleware to make the path not matter (due to differences in webapps)
This commit is contained in:
parent
ee387ac9cc
commit
540fa027fa
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue