This commit is contained in:
Jonasz Bigda
2023-03-25 21:51:42 +01:00
parent 0db1d5117e
commit b332e9ceb0
1044 changed files with 37502 additions and 63938 deletions

View File

@@ -18,7 +18,7 @@ router.get("/", async (req, res) => {
{
$and: [
{ $or: [{ city: { $regex: regex } }, { name: { $regex: regex } }] },
{ $or: [{ hidden: false }, { hidden: { $exists: false } }] }
{ $or: [{ hidden: false }, { hidden: { $exists: false } }] },
],
},
"_id name city adress type imgUrl workingHours description tags location"
@@ -62,6 +62,7 @@ router.get("/location", async (req, res) => {
});
// AUTOCOMPLETE
/*
router.get("/autocomplete/", (req, res) => {
if (req.query.string.length > 0) {
@@ -104,4 +105,6 @@ router.get("/autocomplete/", (req, res) => {
}
});
*/
module.exports = router;