mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-11-14 12:46:48 +08:00
13 lines
306 B
JavaScript
13 lines
306 B
JavaScript
import { api } from "../utils/controller-api.js";
|
|
|
|
export async function getZTAddress() {
|
|
try {
|
|
const res = await api.get("status");
|
|
return res.data.address;
|
|
} catch (err) {
|
|
console.error(
|
|
// @ts-ignore
|
|
"Couldn't connect to the controller on " + err.config.baseURL
|
|
);
|
|
}
|
|
}
|