from fastapi import APIRouter

from app.models.moderation import ModerationRequest, ModerationResponse
from app.services.moderation_service import moderation_service

router = APIRouter(prefix="/moderation", tags=["Moderation"])


@router.post("/check", response_model=ModerationResponse)
def check(req: ModerationRequest) -> ModerationResponse:
    """Check text content for policy violations."""
    return moderation_service.check(req)
