JayBene1 commited on
Commit
2ecab54
·
verified ·
1 Parent(s): 68173c5

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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"}