We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getIDsByHPath
1 parent 8e841a4 commit 962f879Copy full SHA for 962f879
src/api.ts
@@ -131,6 +131,16 @@ export async function getHPathByID(id: BlockId): Promise<string> {
131
return request(url, data);
132
}
133
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
144
// **************************************** Asset Files ****************************************
145
146
export async function upload(assetsDirPath: string, files: any[]): Promise<IResUpload> {
0 commit comments