allow edit of name + address

This commit is contained in:
Emile Nijssen 2021-07-13 20:51:23 +02:00
parent 2966666cc6
commit 016382dd01
11 changed files with 221 additions and 205 deletions

View file

@ -94,4 +94,20 @@ class API {
});
}
async updateClientName({ clientId, name }) {
return this.call({
method: 'put',
path: `/wireguard/client/${clientId}/name/`,
body: { name },
});
}
async updateClientAddress({ clientId, address }) {
return this.call({
method: 'put',
path: `/wireguard/client/${clientId}/address/`,
body: { address },
});
}
}