feat: Move get users API endpoint to admin namespace

This commit is contained in:
Faruk AYDIN
2024-02-24 00:31:15 +01:00
parent 72d68c4377
commit 532cfc10d0
6 changed files with 34 additions and 24 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 getUsersAction from '../../../../controllers/api/v1/admin/users/get-users.ee.js';
const router = Router();
router.get(
'/',
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
getUsersAction
);
export default router;