Add title api
This commit is contained in:
11
main.py
11
main.py
@@ -188,6 +188,17 @@ async def fastapi_is_curve(network: str, pattern: str) -> bool:
|
|||||||
return is_pattern(network, pattern)
|
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]
|
# junction 2.[JUNCTIONS]
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user