Fixed title error
This commit is contained in:
3
main.py
3
main.py
@@ -32,6 +32,7 @@ if not os.path.exists(tmpDir):
|
|||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
# project operations
|
# project operations
|
||||||
|
|
||||||
@app.get('/listprojects/')
|
@app.get('/listprojects/')
|
||||||
async def fastapi_list_projects() -> list[str]:
|
async def fastapi_list_projects() -> list[str]:
|
||||||
return list_project()
|
return list_project()
|
||||||
@@ -200,7 +201,7 @@ async def fast_get_title_schema(network: str) -> dict[str, dict[str, Any]]:
|
|||||||
return get_title_schema(network)
|
return get_title_schema(network)
|
||||||
|
|
||||||
@app.get('/gettitle/')
|
@app.get('/gettitle/')
|
||||||
async def fast_get_title(network: str) -> dict[str, Any]
|
async def fast_get_title(network: str) -> dict[str, Any]:
|
||||||
return get_title(network)
|
return get_title(network)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user