Update Job Blueprint package

This commit is contained in:
Patrick Jentsch
2024-12-12 15:26:01 +01:00
parent bb60a2ba67
commit 0d1805fb76
9 changed files with 92 additions and 98 deletions

View File

@ -1,4 +1,8 @@
nopaque.app.endpoints.Jobs = class Jobs {
constructor(app) {
this.app = app;
}
async delete(jobId) {
const options = {
headers: {
@ -34,7 +38,8 @@ nopaque.app.endpoints.Jobs = class Jobs {
const options = {
headers: {
Accept: 'application/json'
}
},
method: 'POST'
};
const response = await fetch(`/jobs/${jobId}/restart`, options);