POST hotfix
This commit is contained in:
@@ -94,7 +94,7 @@ export function useMutationAPI() {
|
|||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await fetch(url, options);
|
const response = await fetch(`${url}/${endpoint}`, options);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const responseData = await response.json();
|
const responseData = await response.json();
|
||||||
if (typeof responseData.detail !== 'string') {
|
if (typeof responseData.detail !== 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user