Skip to content

Commit 2608bbc

Browse files
committed
Merge issues
1 parent 38eace7 commit 2608bbc

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

codersdk/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (c *Client) CreateWorkspaceProxy(ctx context.Context, req CreateWorkspacePr
8989
if res.StatusCode != http.StatusCreated {
9090
return UpdateWorkspaceProxyResponse{}, ReadBodyAsError(res)
9191
}
92-
var resp CreateWorkspaceProxyResponse
92+
var resp UpdateWorkspaceProxyResponse
9393
return resp, json.NewDecoder(res.Body).Decode(&resp)
9494
}
9595

enterprise/coderd/workspaceproxy.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,6 @@ func (api *API) workspaceProxies(rw http.ResponseWriter, r *http.Request) {
338338
httpapi.Write(ctx, rw, http.StatusOK, convertProxies(proxies, statues))
339339
}
340340

341-
// @Summary Get workspace proxy
342-
// @ID get-workspace-proxy
343-
// @Security CoderSessionToken
344-
// @Produce json
345-
// @Tags Enterprise
346-
// @Param workspaceproxy path string true "Proxy ID or name" format(uuid)
347-
// @Success 200 {object} codersdk.WorkspaceProxy
348-
// @Router /workspaceproxies/{workspaceproxy} [get]
349-
func (api *API) fetchWorkspaceProxy(rw http.ResponseWriter, r *http.Request) {
350-
var (
351-
ctx = r.Context()
352-
proxy = httpmw.WorkspaceProxyParam(r)
353-
)
354-
355-
status := api.ProxyHealth.HealthStatus()[proxy.ID]
356-
httpapi.Write(ctx, rw, http.StatusOK, convertProxy(proxy, status))
357-
}
358-
359341
// @Summary Issue signed workspace app token
360342
// @ID issue-signed-workspace-app-token
361343
// @Security CoderSessionToken

0 commit comments

Comments
 (0)