feat: Implement admin get roles API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-21 15:35:30 +01:00
parent b21074c871
commit 3bf1f79c79
5 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { Router } from 'express';
import { authenticateUser } from '../../../../helpers/authentication.js';
import { authorizeAdmin } from '../../../../helpers/authorization.js';
import { checkIsEnterprise } from '../../../../helpers/check-is-enterprise.js';
import getRolesAction from '../../../../controllers/api/v1/admin/roles/get-roles.ee.js';
const router = Router();
router.get(
'/',
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
getRolesAction
);
export default router;