Skip to content

Commit 962f879

Browse files
committed
✨ feat(api): 更新后端API getIDsByHPath
1 parent 8e841a4 commit 962f879

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/api.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ export async function getHPathByID(id: BlockId): Promise<string> {
131131
return request(url, data);
132132
}
133133

134+
135+
export async function getIDsByHPath(notebook: NotebookId, path: string): Promise<BlockId[]> {
136+
let data = {
137+
notebook: notebook,
138+
path: path
139+
};
140+
let url = '/api/filetree/getIDsByHPath';
141+
return request(url, data);
142+
}
143+
134144
// **************************************** Asset Files ****************************************
135145

136146
export async function upload(assetsDirPath: string, files: any[]): Promise<IResUpload> {

0 commit comments

Comments
 (0)