Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ async def process_in_background(
|
|
| 128 |
|
| 129 |
|
| 130 |
# --- API Endpoints ---
|
| 131 |
-
@app.post("/api/
|
| 132 |
async def start_processing_job(request: Request, background_tasks: BackgroundTasks):
|
| 133 |
"""
|
| 134 |
Accepts a job and starts it in the background. Returns a task ID immediately.
|
|
|
|
| 128 |
|
| 129 |
|
| 130 |
# --- API Endpoints ---
|
| 131 |
+
@app.post("/api/process", status_code=status.HTTP_202_ACCEPTED)
|
| 132 |
async def start_processing_job(request: Request, background_tasks: BackgroundTasks):
|
| 133 |
"""
|
| 134 |
Accepts a job and starts it in the background. Returns a task ID immediately.
|