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