Management API and tools
This commit is contained in:
parent
f698249dd8
commit
9b81a6cc8b
15 changed files with 222 additions and 149 deletions
|
|
@ -5,7 +5,7 @@ export default ({ id }) => {
|
|||
|
||||
useEffect(() => {
|
||||
const handle = setInterval(async () => {
|
||||
const resp = await fetch(`/api/v1/jobs/${id}`, { method: 'POST' });
|
||||
const resp = await fetch(`/api/v1/jobs/${id}`);
|
||||
if (resp.status < 500) {
|
||||
setLogs(await resp.text());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue