feat(PIT-revamp): minor doc improvements

This commit is contained in:
carlosmonastyrski
2025-06-06 16:32:12 -03:00
parent 1ae82dc460
commit 29ba92dadb
2 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -85,7 +85,9 @@ export const registerSnapshotRouter = async (server: FastifyZodProvider) => {
},
onRequest: verifyAuth([AuthMode.JWT, AuthMode.API_KEY, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
throw new Error("This endpoint is deprecated and no longer available");
throw new Error(
"This endpoint is deprecated. Please use the new PIT recovery system. More information is available at: https://infisical.com/docs/documentation/platform/pit-recovery."
);
const secretSnapshot = await server.services.snapshot.rollbackSnapshot({
actor: req.permission.type,