26 lines
657 B
Python
26 lines
657 B
Python
from typing import Optional, List
|
|
import os
|
|
from dotenv import load_dotenv
|
|
|
|
# Load environment variables
|
|
load_dotenv()
|
|
|
|
# Simple settings class without using BaseSettings
|
|
class Settings:
|
|
"""
|
|
Application settings
|
|
"""
|
|
APP_NAME: str = os.getenv("APP_NAME", "ResumeFormatter")
|
|
API_V1_STR: str = f"/{APP_NAME}/api"
|
|
PROJECT_NAME: str = "Profile Linker API"
|
|
|
|
# CORS settings
|
|
BACKEND_CORS_ORIGINS: List[str] = ["*"]
|
|
|
|
# Database settings - using in-memory database by default
|
|
# In a production environment, you would use a real database connection string
|
|
DATABASE_URL: Optional[str] = None
|
|
|
|
|
|
settings = Settings()
|