20 lines
607 B
Python
20 lines
607 B
Python
"""Compatibility layer for the canonical API settings module.
|
|
|
|
Use `app.config` as the single source of truth for API configuration.
|
|
This module remains only for older imports during migration.
|
|
"""
|
|
|
|
from app.config import Settings as AppSettings
|
|
from app.config import get_settings, settings
|
|
|
|
|
|
def reload_settings() -> AppSettings:
|
|
"""Reload settings for tests and legacy callers."""
|
|
import app.config as canonical_config
|
|
|
|
canonical_config.settings = canonical_config.get_settings()
|
|
return canonical_config.settings
|
|
|
|
|
|
__all__ = ["AppSettings", "get_settings", "reload_settings", "settings"]
|