🎨 ♻️ deleteDocument, reponse types
This commit is contained in:
5
packages/lib/api/deleteDocument.ts
Normal file
5
packages/lib/api/deleteDocument.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const deleteDocument = (documentId: number): Promise<Response> => {
|
||||
return fetch(`/api/documents/${documentId}`, {
|
||||
method: "DELETE",
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user