Added bookmark options and delete bookmark

This commit is contained in:
Juan Gilsanz Polo
2024-02-25 20:26:08 +01:00
parent c5da746fc3
commit 776ec9f392
9 changed files with 389 additions and 131 deletions

View File

@@ -134,4 +134,14 @@ class ApiClientService {
return const ApiResponse(successful: false);
}
}
Future<ApiResponse<bool>> postDeleteBookmark(int bookmarkId) async {
try {
await dioInstance.delete("/bookmarks/$bookmarkId/");
return const ApiResponse(successful: true);
} catch (e, stackTrace) {
Sentry.captureException(e, stackTrace: stackTrace);
return const ApiResponse(successful: false);
}
}
}