const {Pool} = require('pg'); const pool = new Pool({ user: 'postgres', host: 'localhost', password: '*****', database: 'docker', port: '5432' }); const mostrarpacients = async(req, res)=>{ const resposta = await pool.query('SELECT * from pacients'); res.status(202).json(resposta.rows); }; module.exports = { mostrarpacients }