feat: write PATCH /v1/admin/apps/:appKey/config
This commit is contained in:
@@ -3,6 +3,7 @@ import { authenticateUser } from '../../../../helpers/authentication.js';
|
||||
import { authorizeAdmin } from '../../../../helpers/authorization.js';
|
||||
import { checkIsEnterprise } from '../../../../helpers/check-is-enterprise.js';
|
||||
import createConfigAction from '../../../../controllers/api/v1/admin/apps/create-config.ee.js';
|
||||
import updateConfigAction from '../../../../controllers/api/v1/admin/apps/update-config.ee.js';
|
||||
import getAuthClientsAction from '../../../../controllers/api/v1/admin/apps/get-auth-clients.ee.js';
|
||||
import getAuthClientAction from '../../../../controllers/api/v1/admin/apps/get-auth-client.ee.js';
|
||||
import createAuthClientAction from '../../../../controllers/api/v1/admin/apps/create-auth-client.ee.js';
|
||||
@@ -18,6 +19,14 @@ router.post(
|
||||
createConfigAction
|
||||
);
|
||||
|
||||
router.patch(
|
||||
'/:appKey/config',
|
||||
authenticateUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
updateConfigAction
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/auth-clients',
|
||||
authenticateUser,
|
||||
|
Reference in New Issue
Block a user