pull/73/head
Piero Toffanin 2019-01-09 11:38:29 -05:00
rodzic 02cf251b02
commit 5580683ef9
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -716,6 +716,13 @@ app.get('/info', authCheck, (req, res) => {
}, (_, data) => {
const { cpu, mem, odmVersion } = data;
// For testing
if (req.query._debugUnauthorized){
res.writeHead(401, "unauthorized")
res.end();
return;
}
res.json({
version: packageJson.version,
taskQueueCount: taskManager.getQueueCount(),