import VisitService from '../services/VisitService.js'; class VisitController { async getAll(req, res, next) { try { const visits = await VisitService.getAll(); return res.json(visits); } catch (e) { next(e); } } async update(req, res, next) { try { await VisitService.update(); return res.json('ok'); } catch (e) { next(e); } } } export default new VisitController();