mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: unexpose coderdtest.NewWithAPI (#2613)
* feat: unexpose coderdtest.NewWithAPI
This commit is contained in:
@ -287,7 +287,11 @@ func New(options *Options) *API {
|
||||
|
||||
r.Post("/authorization", api.checkPermissions)
|
||||
|
||||
r.Post("/keys", api.postAPIKey)
|
||||
r.Route("/keys", func(r chi.Router) {
|
||||
r.Post("/", api.postAPIKey)
|
||||
r.Get("/{keyid}", api.apiKey)
|
||||
})
|
||||
|
||||
r.Route("/organizations", func(r chi.Router) {
|
||||
r.Get("/", api.organizationsByUser)
|
||||
r.Get("/{organizationname}", api.organizationByUserAndName)
|
||||
|
Reference in New Issue
Block a user