Skip to content

Commit

Permalink
Refactored trans_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kbshal committed Mar 29, 2022
1 parent 379857c commit dbe6bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trans_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbe6bfe

Please sign in to comment.