Initial commit
This commit is contained in:
@@ -29,11 +29,11 @@ export const findOneTreeById = (id: number): Promise<BehaviorTreeDetailsResponse
|
||||
|
||||
|
||||
export const updateTree = (rt: Partial<BehaviorTree>): Promise<BasicResponse> => {
|
||||
return req.postJson('/system/behaviortree/${id}', rt);
|
||||
return req.postJson(`/system/behaviortree`, rt);
|
||||
};
|
||||
|
||||
export const createTree = (rt: Partial<BehaviorTree>): Promise<BasicResponse> => {
|
||||
return req.putJson('/system/behaviortree/${id}', rt);
|
||||
return req.putJson(`/system/behaviortree`, rt);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user