Allow up to 10 minutes for chatlog queries because they can be slow
This commit is contained in:
parent
a9501b89f9
commit
0864abf309
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ public class HTTPServer
|
|||
this.app.MapGet("/api/v1/list", (Delegate) VMListHandler);
|
||||
this.app.MapGet("/api/v1/vminfo/{vm:required}", VmInfoHandler);
|
||||
this.app.MapGet("/api/v1/screenshot/{vm:required}", VMScreenshotHandler);
|
||||
this.app.MapGet("/api/v1/chatlogs", (Delegate) VMChatlogHandler);
|
||||
// Allow up to 10 minutes for chatlog queries because they can be slow
|
||||
this.app.MapGet("/api/v1/chatlogs", (Delegate)VMChatlogHandler).WithRequestTimeout(TimeSpan.FromMinutes(10));
|
||||
this.app.MapGet("/api/v1/mod/iptousername/{ip:required}", IPToUsernameHandler);
|
||||
this.app.MapGet("/api/v1/mod/usernametoip/{username:required}", UsernameToIPHandler);
|
||||
this.app.Lifetime.ApplicationStarted.Register(this.onServerStarted);
|
||||
|
|
Loading…
Reference in a new issue