Add method list_projects

This commit is contained in:
DingZQ
2022-10-30 23:12:40 +08:00
parent 851421b14b
commit 6cf57e4850

View File

@@ -32,6 +32,10 @@ if not os.path.exists(tmpDir):
app = FastAPI()
# project operations
@app.get('/listprojects/')
async def fastapi_list_projects() -> list[str]:
return list_project()
@app.get("/haveproject/")
async def fastapi_have_project(network: str):
return have_project(network)