Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite90c285

Browse files
committed
style: rename getUsers to user and update protoc version
1 parent1841e7f commite90c285

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
iferr!=nil {

‎peerbroker/proto/peerbroker.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing 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 aboutcustomizing 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 aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp