Spaces:
Paused
Paused
Update main.py
Browse files
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 |
|