Browse Source

add rest

master
zeus 4 years ago
parent
commit
f103e94e05
  1. 4
      swarmlab-app/src/run/app.js

4
swarmlab-app/src/run/app.js

@ -346,7 +346,7 @@ global.pipelines=[];
// *************************************************** // ***************************************************
app.get('/get_log', [ app.get('/get_log', [
check('access_token').isLength({ min: 40 }) check('token').isLength({ min: 40 })
], ],
cors(corsOptions), (req, res, next) => { cors(corsOptions), (req, res, next) => {
@ -364,7 +364,7 @@ cors(corsOptions), (req, res, next) => {
RES.error = 'no' RES.error = 'no'
} }
if(RES.error == 'ok'){ if(RES.error == 'ok'){
var resdata = await getuserpipelines(token,isvalid.user) var resdata = await getuserpipelines(RES.token,isvalid.user)
var mongourl = "mongodb://"+CONFIG.mongo.user+":"+CONFIG.mongo.password+"@ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017/fluent?replicaSet=rs1&authSource=swarmlabplaygroundstats" var mongourl = "mongodb://"+CONFIG.mongo.user+":"+CONFIG.mongo.password+"@ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017/fluent?replicaSet=rs1&authSource=swarmlabplaygroundstats"
const OPTS = { const OPTS = {
useNewUrlParser: true, useNewUrlParser: true,

Loading…
Cancel
Save