from typing import Optional from fastapi import APIRouter, Body, Header from fastapi import Request from services.authService import AuthService from schemas.BaseSchemas import SNSBase import json router = APIRouter() @router.post("/") async def send_sms(request: Request): body = await request.body() body = json.loads(body) AuthService().blockEmailSNS(body) return "OK"