Added basic post creation.

This commit is contained in:
2023-06-06 01:30:46 +02:00
parent de757efc6e
commit 9a9b92a6b1
21 changed files with 556 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ export async function post(path, data, { query } = {}) {
return body;
}
throw new Error(body.message);
throw new Error(body.statusMessage);
}
export async function patch(path, data, { query } = {}) {