diff --git a/ccp/js/methodlistcontroller.js b/ccp/js/methodlistcontroller.js index df6de62..ec06381 100644 --- a/ccp/js/methodlistcontroller.js +++ b/ccp/js/methodlistcontroller.js @@ -5,8 +5,9 @@ class CCPMethodList extends HTMLElement{ #data; #filtered; - #url = "http://localhost:8080/ccp/fragment.html" - //#url = "http://d4science-cdn-public:8984/resources/ccp/fragment.html" + #serviceurl = "https://nubis1.int.d4science.net:8080" + #cdnurl = "https://nubis1.int.d4science.net:8080/ccp/fragment.html" + //#cdnurl = "http://d4science-cdn-public:8984/resources/ccp/fragment.html" constructor(){ super() @@ -16,7 +17,7 @@ class CCPMethodList extends HTMLElement{ } fetchMarkup(){ - return fetch(this.#url).then( + return fetch(this.#cdnurl).then( (reply)=>{ if(reply.status === 200){ return reply.text() @@ -36,7 +37,7 @@ class CCPMethodList extends HTMLElement{ } fetchProcesses(){ - this.#boot.service("http://localhost:8080/processes", "GET", { limit : 1000}, (resp)=>this.showList(resp), ()=>{ alert("You are not allowed list CCP methods") }) + this.#boot.service(this.#serviceurl + "/processes", "GET", { limit : 1000}, (resp)=>this.showList(resp), ()=>{ alert("You are not allowed list CCP methods") }) } showList(resp){ @@ -101,4 +102,4 @@ class CCPMethodList extends HTMLElement{ } -window.customElements.define('d4s-ccp-methodlist', CCPMethodList); \ No newline at end of file +window.customElements.define('d4s-ccp-methodlist', CCPMethodList);