mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
24 lines
667 B
JavaScript
24 lines
667 B
JavaScript
|
/*****************************************************************************
|
||
|
* Jobs *
|
||
|
* Fetch requests for /jobs routes *
|
||
|
*****************************************************************************/
|
||
|
Requests.jobs = {};
|
||
|
|
||
|
Requests.jobs.entity = {};
|
||
|
|
||
|
Requests.jobs.entity.delete = (jobId) => {
|
||
|
let input = `/jobs/${jobId}`;
|
||
|
let init = {
|
||
|
method: 'DELETE'
|
||
|
};
|
||
|
return Requests.JSONfetch(input, init);
|
||
|
}
|
||
|
|
||
|
Requests.jobs.entity.log = (jobId) => {
|
||
|
let input = `/jobs/${jobId}/log`;
|
||
|
let init = {
|
||
|
method: 'GET'
|
||
|
};
|
||
|
return Requests.JSONfetch(input, init);
|
||
|
}
|