diff --git a/src/Services.svelte b/src/Services.svelte index c3929a3..9ae9faa 100644 --- a/src/Services.svelte +++ b/src/Services.svelte @@ -77,6 +77,19 @@ console.log(`erro`, err) } } + + const getIngressStatus = async (app) => { + let basicName = app._name.split('-') + basicName.shift() + basicName = basicName.join('-') + const promsterUrl = `http://${basicName}-promster.${process.env.BB_MANAGER_DNS_EXTENSION}/api/v1/targets` + const res = await api.get(promsterUrl) + if (res.status === 200 ) { + return 'done' + } else { + throw new Error(error); + } + }