refactored urls
This commit is contained in:
parent
d802ebac51
commit
afe2c67bd1
|
@ -5,8 +5,9 @@ class CCPMethodList extends HTMLElement{
|
||||||
#data;
|
#data;
|
||||||
#filtered;
|
#filtered;
|
||||||
|
|
||||||
#url = "http://localhost:8080/ccp/fragment.html"
|
#serviceurl = "https://nubis1.int.d4science.net:8080"
|
||||||
//#url = "http://d4science-cdn-public:8984/resources/ccp/fragment.html"
|
#cdnurl = "https://nubis1.int.d4science.net:8080/ccp/fragment.html"
|
||||||
|
//#cdnurl = "http://d4science-cdn-public:8984/resources/ccp/fragment.html"
|
||||||
|
|
||||||
constructor(){
|
constructor(){
|
||||||
super()
|
super()
|
||||||
|
@ -16,7 +17,7 @@ class CCPMethodList extends HTMLElement{
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchMarkup(){
|
fetchMarkup(){
|
||||||
return fetch(this.#url).then(
|
return fetch(this.#cdnurl).then(
|
||||||
(reply)=>{
|
(reply)=>{
|
||||||
if(reply.status === 200){
|
if(reply.status === 200){
|
||||||
return reply.text()
|
return reply.text()
|
||||||
|
@ -36,7 +37,7 @@ class CCPMethodList extends HTMLElement{
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchProcesses(){
|
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){
|
showList(resp){
|
||||||
|
|
Loading…
Reference in New Issue