forked from MapComplete/MapComplete
Feat: add panoramax to status page
This commit is contained in:
parent
4ee0467d6c
commit
9e9d5e80d8
1 changed files with 17 additions and 0 deletions
|
@ -93,6 +93,23 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
services.push({
|
||||||
|
name: Constants.panoramax.url,
|
||||||
|
status: testDownload(Constants.panoramax.url + "/api").mapD((result) => {
|
||||||
|
if (result["success"]?.stac_version === "1.0.0") {
|
||||||
|
return "online"
|
||||||
|
}
|
||||||
|
if (result["error"]) {
|
||||||
|
return "offline"
|
||||||
|
} else {
|
||||||
|
return "degraded"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
message: simpleMessage(testDownload(Constants.panoramax.url + "/api"))
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
{
|
{
|
||||||
services.push({
|
services.push({
|
||||||
name: Constants.GeoIpServer,
|
name: Constants.GeoIpServer,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue