diff --git a/trans_api.py b/trans_api.py index a4e2e81..964ad53 100755 --- a/trans_api.py +++ b/trans_api.py @@ -24,9 +24,9 @@ class Config: } -@app.get('/codes') +@app.get('/codes',response_class=JSONResponse) async def get_codes()-> str: - return JSONResponse(constant.LANGUAGES) + return constant.LANGUAGES async def translate_munche(sentence:str,lang:str) -> dict: result_lang = detect(sentence)