kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Testing flag
rodzic
02cf251b02
commit
5580683ef9
7
index.js
7
index.js
|
@ -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(),
|
||||
|
|
Ładowanie…
Reference in New Issue