Skip to content

Commit

Permalink
create search engine, created search index in mongoDB added route and…
Browse files Browse the repository at this point in the history
… controller, controller is incomplete #15
  • Loading branch information
fullstackfrench committed Jan 8, 2025
1 parent e43ab2d commit 2723325
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/controllers/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ const companyController = {
next(error)
}
},
searchCompany: async (req, res, next ) => {
let companies = await Company.aggregate([

])
}
}

export default companyController
Expand All @@ -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?




0 comments on commit 2723325

Please sign in to comment.