refactor: move environment variables loading to application entry point (#283)

This commit is contained in:
Bui Thanh Son 2025-12-02 00:59:50 +07:00 committed by GitHub
parent 5d5b6bd035
commit 60566c9c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,7 @@
# Load environment variables
from dotenv import load_dotenv
load_dotenv()
from contextlib import asynccontextmanager
from fastapi import FastAPI