Browse Source

web - remove debug info api

master
Ruben Meyer 2 years ago
parent
commit
71f6b18b85
Signed by: rxbn_ GPG Key ID: BE3BF898BE352FE2
  1. 10
      bin/web/routes/api.js

10
bin/web/routes/api.js

@ -233,16 +233,6 @@ getRoutes = async () => {
}
});
if(global['gds'].debug) {
// DEBUG info
route.get('/info', (req, res) => {
let obj = {};
if(req.session) obj.session = req.session;
if(req.cookies) obj.cookie = req.cookies;
res.type('json').end(JSON.stringify(obj));
});
}
return route;
};

Loading…
Cancel
Save