mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 10:29:52 +00:00
Begin action route for getting an action by id
This commit is contained in:
@@ -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;
|
||||
@@ -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
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import express from 'express';
|
||||
const router = express.Router();
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user