File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -865,7 +865,7 @@ func New(options *Options) *API {
865
865
apiKeyMiddleware ,
866
866
)
867
867
r .Post ("/" , api .postOrganizations )
868
- r .Get ("/" , api .getOrganizations )
868
+ r .Get ("/" , api .organizations )
869
869
r .Route ("/{organization}" , func (r chi.Router ) {
870
870
r .Use (
871
871
httpmw .ExtractOrganizationParam (options .Database ),
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
// @Tags Organizations
26
26
// @Success 200 {object} []codersdk.Organization
27
27
// @Router /organizations [get]
28
- func (api * API ) getOrganizations (rw http.ResponseWriter , r * http.Request ) {
28
+ func (api * API ) organizations (rw http.ResponseWriter , r * http.Request ) {
29
29
ctx := r .Context ()
30
30
organizations , err := api .Database .GetOrganizations (ctx )
31
31
if httpapi .Is404Error (err ) {
You can’t perform that action at this time.
0 commit comments