Skip to content

Commit 4acfc7a

Browse files
committed
fix auth again
1 parent aa92135 commit 4acfc7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func New(options *Options) (http.Handler, func()) {
307307
r.Route("/autostop", func(r chi.Router) {
308308
r.Put("/", api.putWorkspaceAutostop)
309309
})
310-
r.HandleFunc("/watch", api.watchWorkspace)
310+
r.Get("/watch", api.watchWorkspace)
311311
})
312312
r.Route("/workspacebuilds/{workspacebuild}", func(r chi.Router) {
313313
r.Use(

coderd/coderd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func TestAuthorizeAllEndpoints(t *testing.T) {
130130
"PUT:/api/v2/workspaces/{workspace}/autostop": {NoAuthorize: true},
131131
"GET:/api/v2/workspaces/{workspace}/builds": {NoAuthorize: true},
132132
"POST:/api/v2/workspaces/{workspace}/builds": {NoAuthorize: true},
133-
"CONNECT:/api/v2/workspaces/{workspace}/watch": {NoAuthorize: true},
133+
"GET:/api/v2/workspaces/{workspace}/watch": {NoAuthorize: true},
134134

135135
"POST:/api/v2/files": {NoAuthorize: true},
136136
"GET:/api/v2/files/{hash}": {NoAuthorize: true},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy