Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +6 -0
app/main.py
CHANGED
|
@@ -60,3 +60,9 @@ async def search_contact(request: ContactSearchRequest):
|
|
| 60 |
or query in contact["job_title"].lower()
|
| 61 |
or query in contact["company"].lower()
|
| 62 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
or query in contact["job_title"].lower()
|
| 61 |
or query in contact["company"].lower()
|
| 62 |
]
|
| 63 |
+
return {"results": results}
|
| 64 |
+
|
| 65 |
+
# ✅ Add this root route at the end of the file
|
| 66 |
+
@app.get("/")
|
| 67 |
+
def read_root():
|
| 68 |
+
return {"message": "Mock Contact Search API is running. Use POST /search/contact"}
|