add form to create new event

This commit is contained in:
j3d1 2024-11-02 22:12:00 +01:00
parent f9409bb823
commit dffd3531fa
5 changed files with 132 additions and 11 deletions

View file

@ -95,8 +95,8 @@ const http = {
"Authorization": `Token ${token}`,
},
});
const success = response.status === 200 || response.status === 201;
return {data: await response.json() || {}, success};
const success = response.status === 204;
return {data: await response.text() || {}, success};
}
}