Return ChangeSet for undo and redo
This commit is contained in:
8
main.py
8
main.py
@@ -84,15 +84,11 @@ async def fastapi_unlock_project(network: str):
|
|||||||
# undo/redo
|
# undo/redo
|
||||||
@app.post("/undo/")
|
@app.post("/undo/")
|
||||||
async def fastapi_undo(network: str):
|
async def fastapi_undo(network: str):
|
||||||
execute_undo(network)
|
return execute_undo(network)
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
@app.post("/redo/")
|
@app.post("/redo/")
|
||||||
async def fastapi_redo(network: str):
|
async def fastapi_redo(network: str):
|
||||||
execute_redo(network)
|
return execute_redo(network)
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
@app.get("/getcurrentoperationid/")
|
@app.get("/getcurrentoperationid/")
|
||||||
async def fastapi_get_current_operaiton_id(network: str) -> int:
|
async def fastapi_get_current_operaiton_id(network: str) -> int:
|
||||||
|
|||||||
Reference in New Issue
Block a user