Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def serve_html():
|
|
| 20 |
# -----------------------------
|
| 21 |
@app.post("/send")
|
| 22 |
def send(name: str = Form(...), message: str = Form(...)):
|
| 23 |
-
requests.post(WEBHOOK, json={"content": f"#Neue Kontaktanfrage\n**Von** {name}:\n**Nachricht**:\n{message}"})
|
| 24 |
return {"status": "ok"}
|
| 25 |
|
| 26 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
|
|
|
| 20 |
# -----------------------------
|
| 21 |
@app.post("/send")
|
| 22 |
def send(name: str = Form(...), message: str = Form(...)):
|
| 23 |
+
requests.post(WEBHOOK, json={"content": f"# Neue Kontaktanfrage\n**Von** {name}:\n**Nachricht**:\n{message}"})
|
| 24 |
return {"status": "ok"}
|
| 25 |
|
| 26 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|