feat: sns webhook

feat: text content type handler
feat: email blocking table
This commit is contained in:
2025-05-16 18:19:14 +05:30
parent 30f51618fe
commit 205e423b56
11 changed files with 383 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
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"