Refine
This commit is contained in:
4
main.py
4
main.py
@@ -163,6 +163,10 @@ async def fastapi_undo(network: str):
|
||||
async def fastapi_redo(network: str):
|
||||
return execute_redo(network)
|
||||
|
||||
@app.get('/getsnapshots/')
|
||||
def fastapi_list_snapshot(network: str) -> list[tuple[int, str]]:
|
||||
return list_snapshot(network)
|
||||
|
||||
@app.get('/havesnapshot/')
|
||||
async def fastapi_have_snapshot(network: str, tag: str) -> bool:
|
||||
return have_snapshot(network, tag)
|
||||
|
||||
Reference in New Issue
Block a user