Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def health():
|
|
| 42 |
# REST API (n8n Ready)
|
| 43 |
# ======================
|
| 44 |
|
| 45 |
-
@api.post("/generate")
|
| 46 |
-
async def
|
| 47 |
|
| 48 |
if req.duration > 30:
|
| 49 |
raise HTTPException(400, "Duration too long")
|
|
|
|
| 42 |
# REST API (n8n Ready)
|
| 43 |
# ======================
|
| 44 |
|
| 45 |
+
@api.post("/generate-json")
|
| 46 |
+
async def generate_json(req: GenerateRequest):
|
| 47 |
|
| 48 |
if req.duration > 30:
|
| 49 |
raise HTTPException(400, "Duration too long")
|