pvanand commited on
Commit
0fe6337
·
verified ·
1 Parent(s): 8180f29

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -81,7 +81,7 @@ def fetch_trending_searches(country_code: str):
81
 
82
  # Endpoint to get trending searches for a specific country
83
  @app.get("/trending-searches/{country_code}")
84
- async def get_trending_searches(country_code: str):
85
  return fetch_trending_searches(country_code.upper())
86
 
87
 
 
81
 
82
  # Endpoint to get trending searches for a specific country
83
  @app.get("/trending-searches/{country_code}")
84
+ async def get_trending_searches(country_code: str = Query("US", description="ISO country code (e.g., US for United States)",enum=["US", "IN"])):
85
  return fetch_trending_searches(country_code.upper())
86
 
87