mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -07:00
12 lines
283 B
JavaScript
12 lines
283 B
JavaScript
const api = require("../utils/controller-api");
|
|
|
|
module.exports = async function () {
|
|
try {
|
|
const res = await api.get("status");
|
|
return res.data.address;
|
|
} catch (err) {
|
|
console.error(
|
|
"Couldn't connect to the controller on " + err.config.baseURL
|
|
);
|
|
}
|
|
};
|