Spaces:
Running
Running
feat: update flow tickets (status/message/detail)
Browse files- backend/main.py +3 -3
backend/main.py
CHANGED
|
@@ -93,14 +93,14 @@ async def health_check():
|
|
| 93 |
|
| 94 |
# Flow tickets (fake data)
|
| 95 |
FAKE_TICKETS = [
|
| 96 |
-
{"id": 1, "title": "ticket 1", "detail": ""},
|
| 97 |
-
{"id": 2, "title": "ticket 2", "detail": ""},
|
| 98 |
]
|
| 99 |
|
| 100 |
|
| 101 |
@app.get("/flow/tickets")
|
| 102 |
async def list_flow_tickets():
|
| 103 |
-
return [{"id": t["id"], "title": t["title"]} for t in FAKE_TICKETS]
|
| 104 |
|
| 105 |
|
| 106 |
@app.get("/flow/tickets/{ticket_id}")
|
|
|
|
| 93 |
|
| 94 |
# Flow tickets (fake data)
|
| 95 |
FAKE_TICKETS = [
|
| 96 |
+
{"id": 1, "title": "ticket 1", "detail": "", "status": "open", "message": ""},
|
| 97 |
+
{"id": 2, "title": "ticket 2", "detail": "", "status": "open", "message": ""},
|
| 98 |
]
|
| 99 |
|
| 100 |
|
| 101 |
@app.get("/flow/tickets")
|
| 102 |
async def list_flow_tickets():
|
| 103 |
+
return [{"id": t["id"], "title": t["title"], "status": t["status"]} for t in FAKE_TICKETS]
|
| 104 |
|
| 105 |
|
| 106 |
@app.get("/flow/tickets/{ticket_id}")
|