Try single endpoint

This commit is contained in:
sigonasr2, Sig, Sigo 2021-07-26 03:28:47 +00:00
parent 0582793805
commit dcd6e2c31f
2 changed files with 2 additions and 1 deletions
frontend/src
server

@ -9,7 +9,7 @@ module.exports = function(app) {
})
);*/
app.use(
"/ngsplanner/*",
"/ngsplanner/food",
createProxyMiddleware({
target: 'https://server:4501',
changeOrigin: true,

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