|
|
@ -177,7 +177,7 @@ function CreateDynamicEndpoints() { |
|
|
|
db2.query('select * from '+endpoint.endpoint+" order by id desc") |
|
|
|
db2.query('select * from '+endpoint.endpoint+" order by id desc") |
|
|
|
.then((data)=>{ |
|
|
|
.then((data)=>{ |
|
|
|
res.status(200).json({fields:data.fields,rows:data.rows}) |
|
|
|
res.status(200).json({fields:data.fields,rows:data.rows}) |
|
|
|
co |
|
|
|
console.log({fields:data.fields,rows:data.rows}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err)=>{ |
|
|
|
.catch((err)=>{ |
|
|
|
res.status(500).send(err.message) |
|
|
|
res.status(500).send(err.message) |
|
|
|