feat: Implement get app auth clients API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-22 15:05:22 +01:00
parent 104d49ea1c
commit 3596d13be1
4 changed files with 74 additions and 0 deletions

View File

@@ -3,9 +3,17 @@ import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js';
import { checkIsEnterprise } from '../../../helpers/check-is-enterprise.js';
import getAppAuthClientAction from '../../../controllers/api/v1/app-auth-clients/get-app-auth-client.js';
import getAppAuthClientsAction from '../../../controllers/api/v1/app-auth-clients/get-app-auth-clients.js';
const router = Router();
router.get(
'/',
authenticateUser,
checkIsEnterprise,
asyncHandler(getAppAuthClientsAction)
);
router.get(
'/:appAuthClientId',
authenticateUser,