mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🎨 ♻️ 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