Begin action route for getting an action by id

This commit is contained in:
Tuan Dang
2023-01-01 10:54:23 +07:00
parent 3c349b1e28
commit 4dac65eb8a
6 changed files with 43 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
import express from 'express';
const router = express.Router();
import {
validateRequest
} from '../../../middleware';
import { param } from 'express-validator';
import { actionController } from '../../controllers/v1';
// TODO: put into action controller
router.get(
'/:actionId',
param('actionId').exists().trim(),
validateRequest,
actionController.getAction
);
export default router;
+2 -2
View File
@@ -1,9 +1,9 @@
import secret from './secret';
import workspace from './workspace';
import log from './log';
import action from './action';
export {
secret,
workspace,
log
action
}
-4
View File
@@ -1,4 +0,0 @@
import express from 'express';
const router = express.Router();
export default router;