import Request from "superagent";


export const find = () => (
    Request.get(`/api/jobs${window.location.search}`)
);

export const get = ({ jobId }) => (
    Request.get(`/api/jobs/${jobId}`)
);

export const cancel = ({ jobId }) => (
    Request.post(`/api/jobs/${jobId}/cancel`)
);

export const remove = ({ jobId }) => (
    Request.delete(`/api/jobs/${jobId}`)
);

export const clear = ({ scope }) => (
    Request.delete(`/api/jobs`)
        .query({filter: scope || "finished"})
);

export const getResources = () => (
    Request.get("/api/resources")
);

@@ -415,33 +415,33 @@
  Request.delete(
-%60
+%22
 /api/jobs%60)%0A    
@@ -433,17 +433,17 @@
 api/jobs
-%60
+%22
 )%0A      

Fix eslint warning