mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: add groups support to the CLI (#4755)
This commit is contained in:
@ -77,10 +77,18 @@ func New(ctx context.Context, options *Options) (*API, error) {
|
||||
r.Route("/organizations/{organization}/groups", func(r chi.Router) {
|
||||
r.Use(
|
||||
apiKeyMiddleware,
|
||||
api.templateRBACEnabledMW,
|
||||
httpmw.ExtractOrganizationParam(api.Database),
|
||||
)
|
||||
r.Post("/", api.postGroupByOrganization)
|
||||
r.Get("/", api.groups)
|
||||
r.Route("/{groupName}", func(r chi.Router) {
|
||||
r.Use(
|
||||
httpmw.ExtractGroupByNameParam(api.Database),
|
||||
)
|
||||
|
||||
r.Get("/", api.group)
|
||||
})
|
||||
})
|
||||
|
||||
r.Route("/templates/{template}/acl", func(r chi.Router) {
|
||||
|
Reference in New Issue
Block a user