Files
automatisch/packages/backend/src/routes/api/v1/steps.js
2024-03-13 19:51:36 +01:00

17 lines
473 B
JavaScript

import { Router } from 'express';
import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js';
import getConnectionAction from '../../../controllers/api/v1/steps/get-connection.js';
const router = Router();
router.get(
'/:stepId/connection',
authenticateUser,
authorizeUser,
asyncHandler(getConnectionAction)
);
export default router;