Browse Source

declare unlink method

kaori 3 years ago
parent
commit
71b1d4e4fd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/app/src/client/services/page-operation.ts

+ 4 - 0
packages/app/src/client/services/page-operation.ts

@@ -199,3 +199,7 @@ export const useUpdateStateAfterSave = () => {
     setRemoteLatestPageData(remoterevisionData);
   };
 };
+
+export const unlink = async(path: string): Promise<void> => {
+  await apiPost('/pages.unlink', { path });
+};