16 lines
430 B
Python
16 lines
430 B
Python
"""Public config API routes for VoIdea."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.core.config import get_settings
|
|
from app.schemas.config import PublicConfigResponse
|
|
|
|
router = APIRouter()
|
|
settings = get_settings()
|
|
|
|
|
|
@router.get("/public", response_model=PublicConfigResponse)
|
|
async def public_config():
|
|
"""Return non-sensitive public configuration (slogan, social links, analytics IDs)."""
|
|
return settings.public_config
|