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

Skip to content

Commit 7d206d6

Browse files
committed
Rename function and add comments
1 parent 131680b commit 7d206d6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

site/src/api/api.ts

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

835-
export const getSSHConfig = async (): Promise<TypesGen.SSHConfigResponse> => {
836-
const response = await axios.get(`/api/v2/deployment/ssh`)
837-
return response.data
838-
}
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+
}
839841

840842
export const getDeploymentValues = async (): Promise<DeploymentConfig> => {
841843
const response = await axios.get(`/api/v2/deployment/config`)

0 commit comments

Comments
 (0)