import Places from '../models/Place.js' import cheerio from 'cheerio' import axios from 'axios'; const searchRecommend = async (req, res, next,) => { let responseRecommend = await Places.find({}).sort({updatedAt:-1}) res.send(responseRecommend[0]) } const searchLatest = async (req, res, next) => { let responseLatest = await Places.find({}) res.send(responseLatest[0]) } export default { searchRecommend, searchLatest }