Add API getcurrentoperationid
This commit is contained in:
4
main.py
4
main.py
@@ -79,6 +79,10 @@ async def fastapi_redo(network: str):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@app.get("/getcurrentoperationid/")
|
||||||
|
async def fastapi_get_current_operaiton_id(network: str) -> int:
|
||||||
|
return get_current_operation(network)
|
||||||
|
|
||||||
# node
|
# node
|
||||||
@app.get("/getnodes/")
|
@app.get("/getnodes/")
|
||||||
async def fastapi_get_nodes(network: str) -> list[str]:
|
async def fastapi_get_nodes(network: str) -> list[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user