refactor: Rename AppAuthClient model as OAuthClient
This commit is contained in:
@@ -4,10 +4,10 @@ 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';
|
||||
import updateAuthClientAction from '../../../../controllers/api/v1/admin/apps/update-auth-client.ee.js';
|
||||
import getOAuthClientsAction from '../../../../controllers/api/v1/admin/apps/get-oauth-clients.ee.js';
|
||||
import getOAuthClientAction from '../../../../controllers/api/v1/admin/apps/get-oauth-client.ee.js';
|
||||
import createOAuthClientAction from '../../../../controllers/api/v1/admin/apps/create-oauth-client.ee.js';
|
||||
import updateOAuthClientAction from '../../../../controllers/api/v1/admin/apps/update-oauth-client.ee.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -28,35 +28,35 @@ router.patch(
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/auth-clients',
|
||||
'/:appKey/oauth-clients',
|
||||
authenticateUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
getAuthClientsAction
|
||||
getOAuthClientsAction
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:appKey/auth-clients',
|
||||
'/:appKey/oauth-clients',
|
||||
authenticateUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
createAuthClientAction
|
||||
createOAuthClientAction
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/auth-clients/:appAuthClientId',
|
||||
'/:appKey/oauth-clients/:oauthClientId',
|
||||
authenticateUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
getAuthClientAction
|
||||
getOAuthClientAction
|
||||
);
|
||||
|
||||
router.patch(
|
||||
'/:appKey/auth-clients/:appAuthClientId',
|
||||
'/:appKey/oauth-clients/:oauthClientId',
|
||||
authenticateUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
updateAuthClientAction
|
||||
updateOAuthClientAction
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
||||
@@ -7,8 +7,8 @@ import getAppsAction from '../../../controllers/api/v1/apps/get-apps.js';
|
||||
import getAuthAction from '../../../controllers/api/v1/apps/get-auth.js';
|
||||
import getConnectionsAction from '../../../controllers/api/v1/apps/get-connections.js';
|
||||
import getConfigAction from '../../../controllers/api/v1/apps/get-config.ee.js';
|
||||
import getAuthClientsAction from '../../../controllers/api/v1/apps/get-auth-clients.ee.js';
|
||||
import getAuthClientAction from '../../../controllers/api/v1/apps/get-auth-client.ee.js';
|
||||
import getOAuthClientsAction from '../../../controllers/api/v1/apps/get-oauth-clients.ee.js';
|
||||
import getOAuthClientAction from '../../../controllers/api/v1/apps/get-oauth-client.ee.js';
|
||||
import getTriggersAction from '../../../controllers/api/v1/apps/get-triggers.js';
|
||||
import getTriggerSubstepsAction from '../../../controllers/api/v1/apps/get-trigger-substeps.js';
|
||||
import getActionsAction from '../../../controllers/api/v1/apps/get-actions.js';
|
||||
@@ -44,17 +44,17 @@ router.get(
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/auth-clients',
|
||||
'/:appKey/oauth-clients',
|
||||
authenticateUser,
|
||||
checkIsEnterprise,
|
||||
getAuthClientsAction
|
||||
getOAuthClientsAction
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/auth-clients/:appAuthClientId',
|
||||
'/:appKey/oauth-clients/:oauthClientId',
|
||||
authenticateUser,
|
||||
checkIsEnterprise,
|
||||
getAuthClientAction
|
||||
getOAuthClientAction
|
||||
);
|
||||
|
||||
router.get('/:appKey/triggers', authenticateUser, getTriggersAction);
|
||||
|
||||
Reference in New Issue
Block a user