Skip to content

Commit fb1dddc

Browse files
committed
revert route removal
1 parent b55d1c5 commit fb1dddc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

coderd/coderd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,8 @@ func New(options *Options) *API {
815815
httpmw.ExtractOrganizationParam(options.Database),
816816
)
817817
r.Get("/", api.organization)
818+
r.Patch("/", api.patchOrganization)
819+
r.Delete("/", api.deleteOrganization)
818820
r.Post("/templateversions", api.postTemplateVersionsByOrganization)
819821
r.Route("/templates", func(r chi.Router) {
820822
r.Post("/", api.postTemplateByOrganization)

enterprise/coderd/roles_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ func TestCustomOrganizationRole(t *testing.T) {
6464
// TODO: At present user roles are not returned by the user endpoints.
6565
// Changing this might mess up the UI in how it renders the roles on the
6666
// users page. When the users endpoint is updated, this should be uncommented.
67-
//roleNamesF := func(role codersdk.SlimRole) string { return role.Name }
68-
//require.Contains(t, db2sdk.List(user.Roles, roleNamesF), role.Name)
67+
// roleNamesF := func(role codersdk.SlimRole) string { return role.Name }
68+
// require.Contains(t, db2sdk.List(user.Roles, roleNamesF), role.Name)
6969

7070
// Try to create a template version
7171
coderdtest.CreateTemplateVersion(t, tmplAdmin, first.OrganizationID, nil)

0 commit comments

Comments
 (0)