Added API-call GET Jobs/MonitorJobs

This commit is contained in:
glax 2023-08-31 16:40:08 +02:00
parent 1c1169e5ce
commit 89c5f4b820

View File

@ -165,6 +165,9 @@ public class Server : GlobalBase
case "Jobs/Waiting":
SendResponse(HttpStatusCode.OK, response, _parent._jobBoss.jobs.Where(jjob => jjob.progressToken.state is ProgressToken.State.Standby));
break;
case "Jobs/MonitorJobs":
SendResponse(HttpStatusCode.OK, response, _parent._jobBoss.jobs.Where(jjob => jjob is DownloadNewChapters));
break;
case "Settings":
SendResponse(HttpStatusCode.OK, response, settings);
break;