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

Skip to content

Commit 210d2c1

Browse files
committed
Rename to authorization
1 parent 9f3e8e4 commit 210d2c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

coderd/coderd.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ func New(options *Options) (http.Handler, func()) {
250250
r.Put("/roles", api.putUserRoles)
251251
r.Get("/roles", api.userRoles)
252252

253-
r.Route("/permissions", func(r chi.Router) {
254-
r.Post("/check", api.checkPermissions)
255-
})
253+
r.Post("/authorization", api.checkPermissions)
256254

257255
r.Post("/keys", api.postAPIKey)
258256
r.Route("/organizations", func(r chi.Router) {

0 commit comments

Comments
 (0)