feat: Implement get app actions API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-02 16:13:13 +01:00
parent df2fbbabc6
commit 7c368af5ed
4 changed files with 72 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import getAppsAction from '../../../controllers/api/v1/apps/get-apps.js';
import getAuthAction from '../../../controllers/api/v1/apps/get-auth.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';
const router = Router();
@@ -25,4 +26,10 @@ router.get(
asyncHandler(getTriggerSubstepsAction)
);
router.get(
'/:appKey/actions',
authenticateUser,
asyncHandler(getActionsAction)
);
export default router;