Add method list_projects
This commit is contained in:
4
main.py
4
main.py
@@ -32,6 +32,10 @@ if not os.path.exists(tmpDir):
|
|||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
# project operations
|
# project operations
|
||||||
|
@app.get('/listprojects/')
|
||||||
|
async def fastapi_list_projects() -> list[str]:
|
||||||
|
return list_project()
|
||||||
|
|
||||||
@app.get("/haveproject/")
|
@app.get("/haveproject/")
|
||||||
async def fastapi_have_project(network: str):
|
async def fastapi_have_project(network: str):
|
||||||
return have_project(network)
|
return have_project(network)
|
||||||
|
|||||||
Reference in New Issue
Block a user