File size: 206 Bytes
8d60e33
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from functools import lru_cache
from .core.config import Settings

@lru_cache(maxsize=1)
def get_settings() -> Settings:
    """FastAPI dependency to get application settings."""
    return Settings.load()