From 5f0e5b1bbb6693ab0a1eae5fd048866338f36a5c Mon Sep 17 00:00:00 2001 From: ahtlon Date: Wed, 24 Jun 2026 15:37:32 +0200 Subject: [PATCH] Move .env.example to the right place, fix login to also be at /api/v1 --- .env.example => app/.env.example | 0 app/services/auth.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename .env.example => app/.env.example (100%) 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()