Sfoglia il codice sorgente

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/AI_Anchor_2

huaisianhuang 3 anni fa
parent
commit
7e2fa3a1b4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -156,7 +156,7 @@ async def make_video_slide(request: Request, response: Response, Authorize: Auth
     current_user = Authorize.get_jwt_subject()
     return templates.TemplateResponse("make_video_slide.html", {"request": request, "response": response})
 
-@app.post('/user_profile')
+@app.post('/user_profile',response_class=HTMLResponse)
 async def user_profile(token: str = Depends(oauth2_scheme)):
     db_check()
     if 'ok'!=verify_jwt_token(token):