Fix import
This commit is contained in:
parent
d75cdfadc1
commit
e0e69f8c06
|
@ -6,7 +6,7 @@ from fastapi.security import OAuth2PasswordBearer
|
||||||
from fastapi import Depends, HTTPException, status
|
from fastapi import Depends, HTTPException, status
|
||||||
from jose import JWTError, jwt
|
from jose import JWTError, jwt
|
||||||
from passlib.context import CryptContext
|
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:
|
# to get a string like this run:
|
||||||
|
|
|
@ -4,8 +4,8 @@ from datetime import timedelta
|
||||||
from fastapi import Depends, FastAPI, HTTPException, status
|
from fastapi import Depends, FastAPI, HTTPException, status
|
||||||
from fastapi.security import OAuth2PasswordRequestForm
|
from fastapi.security import OAuth2PasswordRequestForm
|
||||||
|
|
||||||
from models import Token, User
|
from app.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.auth import get_current_active_user, create_access_token, authenticate_user, fake_users_db, ACCESS_TOKEN_EXPIRE_MINUTES
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue