okeowo1014 commited on
Commit
cd523c5
1 Parent(s): 4c6e084

Update app/routers/user.py

Browse files
Files changed (1) hide show
  1. app/routers/user.py +1 -1
app/routers/user.py CHANGED
@@ -13,7 +13,7 @@ def create_user(user: schemas.UserCreate, db: Session = Depends(database.get_db)
13
  return crud.create_user(db=db, user=user)
14
 
15
  # status_code=status.HTTP_401_UNAUTHORIZED
16
- @router.post("/get_token", response_model=dict)
17
  async def login_for_access_token(form_data: OAuth2PasswordRequestForm = Depends(), db: Session = Depends(database.get_db)):
18
  user = auth.authenticate_user(db, form_data.username, form_data.password)
19
  if not user:
 
13
  return crud.create_user(db=db, user=user)
14
 
15
  # status_code=status.HTTP_401_UNAUTHORIZED
16
+ @router.post("/token", response_model=dict)
17
  async def login_for_access_token(form_data: OAuth2PasswordRequestForm = Depends(), db: Session = Depends(database.get_db)):
18
  user = auth.authenticate_user(db, form_data.username, form_data.password)
19
  if not user: