Explorar el Código

user profile type change

ming hace 3 años
padre
commit
e916967c43
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):