Skip to content

Commit e90c285

Browse files
committed
style: rename getUsers to user and update protoc version
1 parent 1841e7f commit e90c285

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func New(options *Options) (http.Handler, func()) {
145145
r.Group(func(r chi.Router) {
146146
r.Use(httpmw.ExtractAPIKey(options.Database, nil))
147147
r.Post("/", api.postUsers)
148-
r.Get("/", api.getUsers)
148+
r.Get("/", api.users)
149149
r.Route("/{user}", func(r chi.Router) {
150150
r.Use(httpmw.ExtractUserParam(options.Database))
151151
r.Get("/", api.userByName)

coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
// Lists all the users
27-
func (api *api) getUsers(rw http.ResponseWriter, r *http.Request) {
27+
func (api *api) users(rw http.ResponseWriter, r *http.Request) {
2828
users, err := api.Database.GetUsers(r.Context())
2929

3030
if err != nil {

peerbroker/proto/peerbroker.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisionerd/proto/provisionerd.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisionersdk/proto/provisioner.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)