From 27233255036ff10befc2cfee36772672fa10d988 Mon Sep 17 00:00:00 2001 From: Franceska Date: Mon, 6 Jan 2025 20:24:52 -0500 Subject: [PATCH] create search engine, created search index in mongoDB added route and controller, controller is incomplete #15 --- server/controllers/company.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/controllers/company.js b/server/controllers/company.js index dfaae95..a87ea24 100644 --- a/server/controllers/company.js +++ b/server/controllers/company.js @@ -92,6 +92,11 @@ const companyController = { next(error) } }, + searchCompany: async (req, res, next ) => { + let companies = await Company.aggregate([ + + ]) + } } export default companyController @@ -101,3 +106,7 @@ export default companyController // do we want to add the ability to limit the number of results that return when a user searches for all companies? // Should we add query params so that we can filter through specfic companies returned based on specific atributes? + + + +