aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-client/src/main.js')
-rw-r--r--packages/meshbay-client/src/main.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/meshbay-client/src/main.js b/packages/meshbay-client/src/main.js
index dba40b4..c1ff540 100644
--- a/packages/meshbay-client/src/main.js
+++ b/packages/meshbay-client/src/main.js
@@ -2222,16 +2222,7 @@ function registerBridge() {
ejectRoot: (a) => ['PUT', `${root(a)}/eject`],
plugRoot: (a) => ['PUT', `${root(a)}/plug`],
removeRoot: (a) => ['DELETE', root(a)],
- // Creating a missing key replaces nothing -- the node keeps an existing one
- // -- so only a rotation is asked about.
- initGek: async (a) => {
- const target = group(a);
- if (a.rotate) {
- await confirmOrRefuse('node.gek_rotate_confirm');
- return ['POST', `${target}/gek?rotate=true`];
- }
- return ['POST', `${target}/gek`];
- },
+ initGek: (a) => ['POST', `${group(a)}/gek${a.rotate ? '?rotate=true' : ''}`],
pairOperator: () => ['POST', '/api/operator/pair'],
roster: (a) => ['GET', a.groupId
? `/api/roster?group_id=${anId(a.groupId, 'the group')}` : '/api/roster'],