feat: Implement get execution API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-03 18:53:14 +01:00
parent 6d85623d9b
commit ede8703f9d
6 changed files with 175 additions and 0 deletions

View File

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