File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -955,7 +955,7 @@ func New(options *Options) *API {
955
955
r .Delete ("/favorite" , api .deleteFavoriteWorkspace )
956
956
r .Put ("/autoupdates" , api .putWorkspaceAutoupdates )
957
957
r .Get ("/resolve-autostart" , api .resolveAutostart )
958
- r .Post ("/port-share" , api .postWorkspacePortShare )
958
+ r .Post ("/port-share" , api .postWorkspaceAgentPortShare )
959
959
})
960
960
})
961
961
r .Route ("/workspacebuilds/{workspacebuild}" , func (r chi.Router ) {
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ import (
12
12
"github.com/coder/coder/v2/codersdk"
13
13
)
14
14
15
- // @Summary Update port share
16
- // @ID update-workspace-port-share
15
+ // @Summary Update workspace agent port share
16
+ // @ID update-workspace-agent- port-share
17
17
// @Security CoderSessionToken
18
18
// @Accept json
19
19
// @Produce json
20
20
// @Tags PortSharing
21
21
// @Param request body codersdk.UpdateWorkspaceAgentPortShareRequest true "Update port sharing level request"
22
22
// @Success 200
23
23
// @Router /workspaces/{workspace}/port-share [post]
24
- func (api * API ) postWorkspacePortShare (rw http.ResponseWriter , r * http.Request ) {
24
+ func (api * API ) postWorkspaceAgentPortShare (rw http.ResponseWriter , r * http.Request ) {
25
25
ctx := r .Context ()
26
26
workspace := httpmw .WorkspaceParam (r )
27
27
portSharer := * api .PortSharer .Load ()
You can’t perform that action at this time.
0 commit comments