feat: write REST API endpoint to create connection
This commit is contained in:
@@ -14,6 +14,7 @@ import getTriggerSubstepsAction from '../../../controllers/api/v1/apps/get-trigg
|
||||
import getActionsAction from '../../../controllers/api/v1/apps/get-actions.js';
|
||||
import getActionSubstepsAction from '../../../controllers/api/v1/apps/get-action-substeps.js';
|
||||
import getFlowsAction from '../../../controllers/api/v1/apps/get-flows.js';
|
||||
import createConnectionAction from '../../../controllers/api/v1/apps/create-connection.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -28,6 +29,13 @@ router.get(
|
||||
getConnectionsAction
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:appKey/connections',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
createConnectionAction
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/config',
|
||||
authenticateUser,
|
||||
|
Reference in New Issue
Block a user