Add endpoints for rolling back a workspace to a secret snapshot and rolling back a secret to a version

This commit is contained in:
Tuan Dang
2023-01-07 20:12:53 +07:00
parent 7152e16288
commit 47ab0b4a0f
11 changed files with 432 additions and 74 deletions
@@ -2,6 +2,12 @@ import { Request, Response } from 'express';
import * as Sentry from '@sentry/node';
import { SecretSnapshot } from '../../models';
/**
* Return secret snapshot with id [secretSnapshotId]
* @param req
* @param res
* @returns
*/
export const getSecretSnapshot = async (req: Request, res: Response) => {
let secretSnapshot;
try {