basyx commited on
Commit
1a5e142
·
verified ·
1 Parent(s): 0c7ce2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,8 +42,8 @@ def health():
42
  # REST API (n8n Ready)
43
  # ======================
44
 
45
- @api.post("/generate")
46
- async def generate(req: GenerateRequest):
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")