add webhook

This commit is contained in:
o.vodianov 2025-09-05 22:54:35 +04:00
parent c4988533c4
commit 932829cd19

15
src/webhook/main.py Normal file
View File

@ -0,0 +1,15 @@
from fastapi import FastAPI, Request
app = FastAPI()
@app.get("/")
async def home():
return {"message": "Hello World"}
@app.post("/webhook")
async def receive_webhook(request: Request):
data = await request.json()
# Process your data here
return {"message": "Webhook received!"}