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