Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5df5763

Browse files
committed
Fix route
1 parent f6be255 commit 5df5763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func New(options *Options) (http.Handler, func()) {
242242
r.Put("/suspend", api.putUserSuspend)
243243
r.Route("/password", func(r chi.Router) {
244244
r.Use(httpmw.WithRBACObject(rbac.ResourceUserPasswordRole))
245-
r.Put("/password", authorize(api.putUserPassword, rbac.ActionUpdate))
245+
r.Put("/", authorize(api.putUserPassword, rbac.ActionUpdate))
246246
})
247247
r.Get("/organizations", api.organizationsByUser)
248248
r.Post("/organizations", api.postOrganizationsByUser)

0 commit comments

Comments
 (0)