From a6fa8cac582f2fc54eca0191bd54fd43d6d67ac2 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 23 Mar 2023 12:46:39 -0500 Subject: [PATCH] chore: add typescript api for ssh config (#6741) * chore: add typescript api for ssh config --- site/src/api/api.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/src/api/api.ts b/site/src/api/api.ts index 715665b77e..c5c1debd5d 100644 --- a/site/src/api/api.ts +++ b/site/src/api/api.ts @@ -832,6 +832,13 @@ export const getAgentListeningPorts = async ( return response.data } +// getDeploymentSSHConfig is used by the VSCode-Extension. +export const getDeploymentSSHConfig = + async (): Promise => { + const response = await axios.get(`/api/v2/deployment/ssh`) + return response.data + } + export const getDeploymentValues = async (): Promise => { const response = await axios.get(`/api/v2/deployment/config`) return response.data