🚚 chore(endpoints.py): reorder endpoints to keep backwards compatibility
The `/predict/{flow_id}` endpoint was moved above the `/process/{flow_id}` endpoint to maintain backwards compatibility with existing clients.
This commit is contained in:
parent
bcb80a08b2
commit
dc0a772635
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ def get_all():
|
|||
return build_langchain_types_dict()
|
||||
|
||||
|
||||
# For backwards compatibility we will keep the old endpoint
|
||||
@router.post("/predict/{flow_id}", response_model=ProcessResponse)
|
||||
@router.post("/process/{flow_id}", response_model=ProcessResponse)
|
||||
async def process_flow(
|
||||
flow_id: str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue