feat: Implement API endpoint to get flows of the specified app
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import { authenticateUser } from '../../../helpers/authentication.js';
|
||||
import { authorizeUser } from '../../../helpers/authorization.js';
|
||||
import getAppAction from '../../../controllers/api/v1/apps/get-app.js';
|
||||
import getAppsAction from '../../../controllers/api/v1/apps/get-apps.js';
|
||||
import getAuthAction from '../../../controllers/api/v1/apps/get-auth.js';
|
||||
@@ -8,6 +9,7 @@ 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';
|
||||
import getActionSubstepsAction from '../../../controllers/api/v1/apps/get-action-substeps.js';
|
||||
import getFlowsAction from '../../../controllers/api/v1/apps/get-flows.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -39,4 +41,11 @@ router.get(
|
||||
asyncHandler(getActionSubstepsAction)
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:appKey/flows',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
asyncHandler(getFlowsAction)
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user