|
@ -253,18 +253,20 @@ app.get('/run', [ |
|
|
], |
|
|
], |
|
|
cors(corsOptions), (req, res, next) => { |
|
|
cors(corsOptions), (req, res, next) => { |
|
|
|
|
|
|
|
|
var RES = new Object(); |
|
|
(async() => { |
|
|
RES.code = req.query["filter"] |
|
|
var RES = new Object(); |
|
|
RES.token = req.query["filter"] |
|
|
RES.code = req.query["filter"] |
|
|
var isvalid = await checkToken(RES.token); |
|
|
RES.token = req.query["filter"] |
|
|
if(isvalid.action == 'ok'){ |
|
|
var isvalid = await checkToken(RES.token); |
|
|
console.log("Authserver ok " + RES.token); |
|
|
if(isvalid.action == 'ok'){ |
|
|
}else{ |
|
|
console.log("Authserver ok " + RES.token); |
|
|
console.log("Authserver no " + RES.token); |
|
|
}else{ |
|
|
} |
|
|
console.log("Authserver no " + RES.token); |
|
|
RES.error = false |
|
|
} |
|
|
RES.error_msg = "ok" |
|
|
RES.error = false |
|
|
res.json(RES) |
|
|
RES.error_msg = "ok" |
|
|
|
|
|
res.json(RES) |
|
|
|
|
|
})() |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|