feat: enable k3s

This commit is contained in:
2024-10-30 17:38:15 -04:00
parent 7ffc59bbaa
commit 0d4a54664d
8 changed files with 35 additions and 31 deletions

View File

@@ -77,10 +77,14 @@ async function _getNetwork(id: string) {
}
async function authorizeNode(networkId: string, nodeId: string) {
const data = await post(`/controller/network/${networkId}/member/${nodeId}`, {
authorized: true,
});
return data;
try {
const data = await post(`/controller/network/${networkId}/member/${nodeId}`, {
authorized: true,
});
return data;
} catch (e) {
console.error("ERROR", e);
}
}
async function get(url: string) {