mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
Fixed double slash in attachments route
This commit is contained in:
@@ -9,7 +9,7 @@ export function useUploadAttachments(props) {
|
|||||||
const apiRequest = useApiRequest();
|
const apiRequest = useApiRequest();
|
||||||
|
|
||||||
return useMutation(
|
return useMutation(
|
||||||
(values) => apiRequest.post('/attachments', values),
|
(values) => apiRequest.post('attachments', values),
|
||||||
props,
|
props,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@ export function useDeleteAttachment(props) {
|
|||||||
const apiRequest = useApiRequest();
|
const apiRequest = useApiRequest();
|
||||||
|
|
||||||
return useMutation(
|
return useMutation(
|
||||||
(key: string) => apiRequest.delete(`/attachments/${key}`),
|
(key: string) => apiRequest.delete(`attachments/${key}`),
|
||||||
props,
|
props,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@ export function useGetPresignedUrlAttachment(props) {
|
|||||||
return useMutation(
|
return useMutation(
|
||||||
(key: string) =>
|
(key: string) =>
|
||||||
apiRequest
|
apiRequest
|
||||||
.get(`/attachments/${key}/presigned-url`)
|
.get(`attachments/${key}/presigned-url`)
|
||||||
.then((res) => res.data),
|
.then((res) => res.data),
|
||||||
props,
|
props,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user