workspaceAgentConnectionGeneric is the same as workspaceAgentConnection but without the workspaceagent path parameter. @Summary Get connection info for workspace agent generic @ID get-connection-info-for-workspace-agent-generic @Security CoderSessionToken @Produce json @Tags Agents @Success 200 {ob
(rw http.ResponseWriter, r *http.Request)
| 1206 | // @Router /api/v2/workspaceagents/connection [get] |
| 1207 | // @x-apidocgen {"skip": true} |
| 1208 | func (api *API) workspaceAgentConnectionGeneric(rw http.ResponseWriter, r *http.Request) { |
| 1209 | ctx := r.Context() |
| 1210 | |
| 1211 | httpapi.Write(ctx, rw, http.StatusOK, workspacesdk.AgentConnectionInfo{ |
| 1212 | DERPMap: api.DERPMap(), |
| 1213 | DERPForceWebSockets: api.DeploymentValues.DERP.Config.ForceWebSockets.Value(), |
| 1214 | DisableDirectConnections: api.DeploymentValues.DERP.Config.BlockDirect.Value(), |
| 1215 | HostnameSuffix: api.DeploymentValues.WorkspaceHostnameSuffix.Value(), |
| 1216 | }) |
| 1217 | } |
| 1218 | |
| 1219 | // @Summary Get DERP map updates |
| 1220 | // @ID get-derp-map-updates |