diff --git a/.env.example b/app/.env.example similarity index 100% rename from .env.example rename to app/.env.example diff --git a/app/services/auth.py b/app/services/auth.py index 8515191..af8b52e 100644 --- a/app/services/auth.py +++ b/app/services/auth.py @@ -19,9 +19,9 @@ SECRET_KEY = os.getenv("SECRET_KEY") ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 120 -oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") +oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/api/v1/token") -token_router = APIRouter(tags=["Token"]) +token_router = APIRouter(tags=["Token"], prefix="/api/v1") password_hash = PasswordHash.recommended()