mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 10:46:38 +00:00
change file naming structure to reGenerate exit node keys
This commit is contained in:
@@ -237,11 +237,11 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
"/org/:orgId/update-remote-exit-node",
|
"/org/:orgId/reGenerate-remote-exit-node-secret",
|
||||||
verifyValidLicense,
|
verifyValidLicense,
|
||||||
verifyOrgAccess,
|
verifyOrgAccess,
|
||||||
verifyUserHasAction(ActionsEnum.updateRemoteExitNode),
|
verifyUserHasAction(ActionsEnum.updateRemoteExitNode),
|
||||||
remoteExitNode.updateRemoteExitNode
|
remoteExitNode.reGenerateExitNodeSecret
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
|
|||||||
@@ -21,4 +21,4 @@ export * from "./deleteRemoteExitNode";
|
|||||||
export * from "./listRemoteExitNodes";
|
export * from "./listRemoteExitNodes";
|
||||||
export * from "./pickRemoteExitNodeDefaults";
|
export * from "./pickRemoteExitNodeDefaults";
|
||||||
export * from "./quickStartRemoteExitNode";
|
export * from "./quickStartRemoteExitNode";
|
||||||
export * from "./updateRemoteExitNode";
|
export * from "./reGenerateExitNodeSecret";
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const bodySchema = z
|
|||||||
})
|
})
|
||||||
.strict();
|
.strict();
|
||||||
|
|
||||||
export async function updateRemoteExitNode(
|
export async function reGenerateExitNodeSecret(
|
||||||
req: Request,
|
req: Request,
|
||||||
res: Response,
|
res: Response,
|
||||||
next: NextFunction
|
next: NextFunction
|
||||||
@@ -79,7 +79,7 @@ export default function CredentialsPage() {
|
|||||||
|
|
||||||
const response = await api.put<
|
const response = await api.put<
|
||||||
AxiosResponse<QuickStartRemoteExitNodeResponse>
|
AxiosResponse<QuickStartRemoteExitNodeResponse>
|
||||||
>(`/org/${orgId}/update-remote-exit-node`, {
|
>(`/org/${orgId}/reGenerate-remote-exit-node-secret`, {
|
||||||
remoteExitNodeId: remoteExitNode.remoteExitNodeId,
|
remoteExitNodeId: remoteExitNode.remoteExitNodeId,
|
||||||
secret: credentials.secret,
|
secret: credentials.secret,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user