Update api.ts, add transferBlockRef API
This commit is contained in:
parent
6a6d7e2f03
commit
cb7dd43525
1 changed files with 10 additions and 0 deletions
10
src/api.ts
10
src/api.ts
|
@ -241,6 +241,16 @@ export async function getChildBlocks(id: BlockId): Promise<ChildBlock[]> {
|
|||
return request(url, data);
|
||||
}
|
||||
|
||||
export async function transferBlockRef(fromID: BlockId, toID: BlockId, refIDs: BlockId[]) {
|
||||
let data = {
|
||||
fromID: fromID,
|
||||
toID: toID,
|
||||
refIDs: refIDs
|
||||
}
|
||||
let url = '/api/block/transferBlockRef';
|
||||
return request(url, data);
|
||||
}
|
||||
|
||||
// **************************************** Attributes ****************************************
|
||||
export async function setBlockAttrs(id: BlockId, attrs: { [key: string]: string }) {
|
||||
let data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue