23 lines
596 B
Python
23 lines
596 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
backend_dir = Path(__file__).resolve().parent.parent
|
|
load_dotenv(backend_dir / ".env")
|
|
|
|
|
|
class Settings:
|
|
app_name = "Interactive Mindmap API"
|
|
api_prefix = "/api"
|
|
backend_dir = backend_dir
|
|
data_dir = backend_dir / "data"
|
|
database_path = data_dir / "mindmap.db"
|
|
database_url = f"sqlite:///{database_path.as_posix()}"
|
|
allowed_origins = ["*"]
|
|
bot_app_key = os.environ.get("BOT_APP_KEY", "")
|
|
frontend_base_url = os.environ.get("FRONTEND_BASE_URL", "http://localhost:3000")
|
|
|
|
|
|
settings = Settings()
|