From 851421b14b00af1352feaa6310041d53d5aaadde Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 30 Oct 2022 23:10:30 +0800 Subject: [PATCH] Add title api --- main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main.py b/main.py index ba9ac78..053d6fa 100644 --- a/main.py +++ b/main.py @@ -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] ############################################################