Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Place= require('../models/place.js');
- findAllPlaces = function (req, res, next) {
- Place.getQuery(req.query).exec(function(err, places) {
- console.log(JSON.parse(JSON.stringify(places)));
- res.send(places);
- });
- function getQuery (rawParams) {
- console.log(JSON.parse(JSON.stringify(rawParams)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement