diff --git a/frontend/src/setupProxy.js b/frontend/src/setupProxy.js index 286b090..3c03285 100644 --- a/frontend/src/setupProxy.js +++ b/frontend/src/setupProxy.js @@ -9,7 +9,7 @@ module.exports = function(app) { }) );*/ app.use( - "/ngsplanner/*", + "/ngsplanner/food", createProxyMiddleware({ target: 'https://server:4501', changeOrigin: true, diff --git a/server/app.js b/server/app.js index 3e5d52b..5e08123 100644 --- a/server/app.js +++ b/server/app.js @@ -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)