added API call to CRM when user registers
This commit is contained in:
@@ -5,7 +5,7 @@ import mongoose from "mongoose";
|
||||
var router = express.Router();
|
||||
|
||||
router.get("/", (req, res) => {
|
||||
Restaurant.find({ city: req.body.city }, (err, data) => {
|
||||
Restaurant.find({ city: req.query.city }, (err, data) => {
|
||||
if (err) {
|
||||
res.sendStatus(404);
|
||||
} else res.send(data);
|
||||
|
||||
Reference in New Issue
Block a user