mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
chore: add typescript api for ssh config (#6741)
* chore: add typescript api for ssh config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user