Przeglądaj źródła

user profile type change

ming 3 lat temu
rodzic
commit
e916967c43
1 zmienionych plików z 1 dodań i 1 usunięć
  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):