Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6fa8ca

Browse files
authored
chore: add typescript api for ssh config (#6741)
* chore: add typescript api for ssh config
1 parent 8857971 commit a6fa8ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/src/api/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,13 @@ export const getAgentListeningPorts = async (
832832
return response.data
833833
}
834834

835+
// getDeploymentSSHConfig is used by the VSCode-Extension.
836+
export const getDeploymentSSHConfig =
837+
async (): Promise<TypesGen.SSHConfigResponse> => {
838+
const response = await axios.get(`/api/v2/deployment/ssh`)
839+
return response.data
840+
}
841+
835842
export const getDeploymentValues = async (): Promise<DeploymentConfig> => {
836843
const response = await axios.get(`/api/v2/deployment/config`)
837844
return response.data

0 commit comments

Comments
 (0)