feat: Implement new admin get app auth client API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-27 13:59:10 +01:00
parent a873fd14bd
commit 0a4ac1cece
5 changed files with 69 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import { authenticateUser } from '../../../../helpers/authentication.js';
import { authorizeAdmin } from '../../../../helpers/authorization.js';
import { checkIsEnterprise } from '../../../../helpers/check-is-enterprise.js';
import getAuthClientsAction from '../../../../controllers/api/v1/admin/apps/get-auth-clients.ee.js';
import getRoleAction from '../../../../controllers/api/v1/admin/roles/get-role.ee.js';
import getAuthClientAction from '../../../../controllers/api/v1/admin/apps/get-auth-client.ee.js';
const router = Router();
@@ -21,7 +21,7 @@ router.get(
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
asyncHandler(getRoleAction)
asyncHandler(getAuthClientAction)
);
export default router;