~fkooman/vpn-user-portal

58b1383f90a3ca811de0a8c61a07f1a8416fa5b9 — François Kooman 3 months ago ef50729
wrap /v1/connected_users Admin API response in object
1 files changed, 1 insertions(+), 1 deletions(-)

M src/Http/AdminApiModule.php
M src/Http/AdminApiModule.php => src/Http/AdminApiModule.php +1 -1
@@ 52,7 52,7 @@ class AdminApiModule implements ServiceModuleInterface
    {
        $service->get(
            '/v1/connected_users',
            fn(Request $request, UserInfo $userInfo): Response => new JsonResponse(self::extractConnectedUsers($this->connectionManager->get()))
            fn(Request $request, UserInfo $userInfo): Response => new JsonResponse(['connected_users' => self::extractConnectedUsers($this->connectionManager->get())])
        );

        $service->get(