Fix import

This commit is contained in:
Jimmy 2021-12-04 02:01:18 +13:00
parent d75cdfadc1
commit e0e69f8c06
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ from fastapi.security import OAuth2PasswordBearer
from fastapi import Depends, HTTPException, status
from jose import JWTError, jwt
from passlib.context import CryptContext
from models import User, UserInDB, TokenData
from app.models import User, UserInDB, TokenData
# to get a string like this run:

View File

@ -4,8 +4,8 @@ from datetime import timedelta
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from models import Token, User
from auth import get_current_active_user, create_access_token, authenticate_user, fake_users_db, ACCESS_TOKEN_EXPIRE_MINUTES
from app.models import Token, User
from app.auth import get_current_active_user, create_access_token, authenticate_user, fake_users_db, ACCESS_TOKEN_EXPIRE_MINUTES
app = FastAPI()