mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-05-02 00:00:23 +03:00
wip
This commit is contained in:
parent
d7bb645470
commit
d8f45476da
6 changed files with 104 additions and 63 deletions
|
@ -55,7 +55,14 @@ class API {
|
|||
return this.call({
|
||||
method: 'get',
|
||||
path: '/wireguard/client',
|
||||
});
|
||||
}).then(clients => clients.map(client => ({
|
||||
...client,
|
||||
createdAt: new Date(client.createdAt),
|
||||
updatedAt: new Date(client.updatedAt),
|
||||
latestHandshakeAt: client.latestHandshakeAt !== null
|
||||
? new Date(client.latestHandshakeAt)
|
||||
: null,
|
||||
})));
|
||||
}
|
||||
|
||||
async createClient({ name }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue