Browse Source

add rest

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

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

@ -200,14 +200,14 @@ async function getpipelines(token,pipelinename) {
try { try {
var pipelines = { var pipelines = {
"querytokenFilter":'uWr4FKRqrmpCRkJ9WLuI0DNuDWOGTkfcSzyZkJirZvJwwFDffLWrraqzzSPLeuQqL3TF9', "querytokenFilter":CONFIG.api.token,
"filter":pipelinename "filter":pipelinename
} }
//var params = { //var params = {
// pipeline: pipelines // pipeline: pipelines
// } // }
var params = { var params = {
querytokenFilter:'uWr4FKRqrmpCRkJ9WLuI0DNuDWOGTkfcSzyZkJirZvJwwFDffLWrraqzzSPLeuQqL3TF9', querytokenFilter:CONFIG.api.token,
filter:pipelinename filter:pipelinename
} }
@ -260,7 +260,7 @@ async function getuserpipelines(token,user,swarmlabname) {
try { try {
var pipelines = { var pipelines = {
"querytokenFilter":'uWr4FKRqrmpCRkJ9WLuI0DNuDWOGTkfcSzyZkJirZvJwwFDffLWrraqzzSPLeuQqL3TF9', "querytokenFilter":CONFIG.api.token,
"filter":pipelinename, "filter":pipelinename,
swarmlabname:swarmlabname swarmlabname:swarmlabname
} }
@ -268,7 +268,7 @@ async function getuserpipelines(token,user,swarmlabname) {
// pipeline: pipelines // pipeline: pipelines
// } // }
var params = { var params = {
querytokenFilter:'uWr4FKRqrmpCRkJ9WLuI0DNuDWOGTkfcSzyZkJirZvJwwFDffLWrraqzzSPLeuQqL3TF9', querytokenFilter:CONFIG.api.token,
filter:pipelinename, filter:pipelinename,
swarmlabname:swarmlabname swarmlabname:swarmlabname
} }

Loading…
Cancel
Save