This commit is contained in:
DingZQ
2023-04-06 23:14:05 +08:00
parent 8d15df4a3b
commit 098ba98a7c

View File

@@ -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)