change file naming structure to reGenerate exit node keys

This commit is contained in:
Pallavi Kumari
2025-10-26 21:24:48 +05:30
parent 58a13de0ff
commit 3756aaecda
4 changed files with 5 additions and 5 deletions

View File

@@ -237,11 +237,11 @@ authenticated.put(
);
authenticated.put(
"/org/:orgId/update-remote-exit-node",
"/org/:orgId/reGenerate-remote-exit-node-secret",
verifyValidLicense,
verifyOrgAccess,
verifyUserHasAction(ActionsEnum.updateRemoteExitNode),
remoteExitNode.updateRemoteExitNode
remoteExitNode.reGenerateExitNodeSecret
);
authenticated.get(

View File

@@ -21,4 +21,4 @@ export * from "./deleteRemoteExitNode";
export * from "./listRemoteExitNodes";
export * from "./pickRemoteExitNodeDefaults";
export * from "./quickStartRemoteExitNode";
export * from "./updateRemoteExitNode";
export * from "./reGenerateExitNodeSecret";

View File

@@ -32,7 +32,7 @@ const bodySchema = z
})
.strict();
export async function updateRemoteExitNode(
export async function reGenerateExitNodeSecret(
req: Request,
res: Response,
next: NextFunction