mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-09 07:16:47 +00:00
* fix: add source language for file pipeline * feat: send email in share transcript and add email sending in room * fix: hide audio and video streaming for unauthenticated users * fix: security order
21 lines
463 B
Python
21 lines
463 B
Python
from fastapi import APIRouter
|
|
from pydantic import BaseModel
|
|
|
|
from reflector.email import is_email_configured
|
|
from reflector.settings import settings
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
class ConfigResponse(BaseModel):
|
|
zulip_enabled: bool
|
|
email_enabled: bool
|
|
|
|
|
|
@router.get("/config", response_model=ConfigResponse)
|
|
async def get_config():
|
|
return ConfigResponse(
|
|
zulip_enabled=bool(settings.ZULIP_REALM),
|
|
email_enabled=is_email_configured(),
|
|
)
|