Browse Source

Update index.post.ts

Added output of additional information when creating a client via the API.
pull/2207/head
ivacom 9 months ago
committed by GitHub
parent
commit
0a7217605b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      src/server/api/client/index.post.ts

3
src/server/api/client/index.post.ts

@ -13,6 +13,7 @@ export default definePermissionEventHandler(
await WireGuard.saveConfig();
const clientId = result[0]!.clientId;
return { success: true, clientId };
const config = await WireGuard.getClientConfiguration({ clientId });
return { success: true, clientId, name, expiresAt, config };
}
);

Loading…
Cancel
Save