It is possible from a request using express, convert it to ajax, or even if you can merge them.
Example:
app.get('/alunos',(req,res) => {
const client = new Client();
client.connect()
.then(() => {
return client.query('SELEC...
asked by
27.07.2018 / 04:38