Add title api

This commit is contained in:
DingZQ
2022-10-30 23:10:30 +08:00
parent c697fb158b
commit 851421b14b

11
main.py
View File

@@ -188,6 +188,17 @@ async def fastapi_is_curve(network: str, pattern: str) -> bool:
return is_pattern(network, pattern)
############################################################
# title 1.[TITLE]
############################################################
@app.get('/gettitleschema/')
async def fast_get_title_schema(network: str) -> dict[str, dict[str, Any]]:
return get_title_schema(network)
@app.get('/gettitle/')
async def fast_get_title(network: str) -> dict[str, Any]
return get_title(network)
############################################################
# junction 2.[JUNCTIONS]
############################################################