Replace axios with fetch

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-11 23:37:37 +02:00
parent 2f57d0a5bd
commit f3165877f2
144 changed files with 1146 additions and 2754 deletions

View File

@ -14,10 +14,9 @@ function useUpdateBookmarkFolder(folderId: string) {
const { createEntity, ...rest } = useCreateEntity(
[Entities.BOOKMARK_FOLDERS],
(params: UpdateBookmarkFolderParams) =>
api.patch(`/api/v1/pleroma/bookmark_folders/${folderId}`, params, {
headers: {
'Content-Type': 'multipart/form-data',
},
api(`/api/v1/pleroma/bookmark_folders/${folderId}`, {
method: 'PATCH',
body: JSON.stringify(params),
}),
{ schema: bookmarkFolderSchema },
);