mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Begin v3 secrets
This commit is contained in:
19
backend/src/routes/v3/secrets.ts
Normal file
19
backend/src/routes/v3/secrets.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import express from 'express';
|
||||
const router = express.Router();
|
||||
import {
|
||||
requireAuth, validateRequest
|
||||
} from '../../middleware';
|
||||
import { body } from 'express-validator';
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
body('workspaceId').exists().isString().trim(),
|
||||
body('environment').exists().isString().trim(),
|
||||
body('secretType').exists().isString(),
|
||||
validateRequest,
|
||||
async (req, res) => {
|
||||
return;
|
||||
}
|
||||
);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user