feat: write PATCH /v1/admin/config

This commit is contained in:
Ali BARIN
2024-08-29 13:13:25 +00:00
parent 7a54ff212e
commit e77a03b855
6 changed files with 203 additions and 2 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 updateConfigAction from '../../../../controllers/api/v1/admin/config/update.ee.js';
const router = Router();
router.patch(
'/',
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
updateConfigAction
);
export default router;