feat: sns webhook
feat: text content type handler feat: email blocking table
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user