Management API and tools

This commit is contained in:
oitsjustjose 2023-04-24 19:38:35 -05:00
commit 9b81a6cc8b
15 changed files with 222 additions and 149 deletions

View file

@ -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 {