Fred808 commited on
Commit
54f97c4
·
verified ·
1 Parent(s): bb8c6cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -588,7 +588,7 @@ async def payment_callback(request: Request):
588
 
589
  from fastapi_cache.decorator import cache
590
 
591
- @app.get("/track_order/{deliveryId}", response_model=List[TrackingUpdate])
592
  @cache(expire=60) # Cache for 1 minute
593
  async def get_order_tracking(order_id: str, page: int = 1, limit: int = 10):
594
  order_id = order_id.upper() # Normalize the order ID to uppercase
 
588
 
589
  from fastapi_cache.decorator import cache
590
 
591
+ @app.get("/track_order/{order_id}", response_model=List[TrackingUpdate])
592
  @cache(expire=60) # Cache for 1 minute
593
  async def get_order_tracking(order_id: str, page: int = 1, limit: int = 10):
594
  order_id = order_id.upper() # Normalize the order ID to uppercase