chore: add typescript api for ssh config (#6741)

* chore: add typescript api for ssh config
This commit is contained in:
Steven Masley
2023-03-23 17:46:39 +00:00
committed by GitHub
parent 8857971552
commit a6fa8cac58
+7
View File
@@ -832,6 +832,13 @@ export const getAgentListeningPorts = async (
return response.data
}
// getDeploymentSSHConfig is used by the VSCode-Extension.
export const getDeploymentSSHConfig =
async (): Promise<TypesGen.SSHConfigResponse> => {
const response = await axios.get(`/api/v2/deployment/ssh`)
return response.data
}
export const getDeploymentValues = async (): Promise<DeploymentConfig> => {
const response = await axios.get(`/api/v2/deployment/config`)
return response.data