From 932829cd1993e8dca603801e8dfe2637457ca392 Mon Sep 17 00:00:00 2001 From: "o.vodianov" Date: Fri, 5 Sep 2025 22:54:35 +0400 Subject: [PATCH] add webhook --- src/webhook/main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/webhook/main.py diff --git a/src/webhook/main.py b/src/webhook/main.py new file mode 100644 index 0000000..0350036 --- /dev/null +++ b/src/webhook/main.py @@ -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!"} \ No newline at end of file