feat: Implement get executions API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-06 14:46:19 +01:00
parent 25e231cd7c
commit 3ff89a03ac
5 changed files with 190 additions and 0 deletions

View File

@@ -2,10 +2,18 @@ import { Router } from 'express';
import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js';
import getExecutionsAction from '../../../controllers/api/v1/executions/get-executions.js';
import getExecutionAction from '../../../controllers/api/v1/executions/get-execution.js';
const router = Router();
router.get(
'/',
authenticateUser,
authorizeUser,
asyncHandler(getExecutionsAction)
);
router.get(
'/:executionId',
authenticateUser,