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

Commit7803e8f

Browse files
committed
style: rename update to put
1 parentb6eb9f7 commit7803e8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func New(options *Options) (http.Handler, func()) {
135135
r.Route("/{user}",func(r chi.Router) {
136136
r.Use(httpmw.ExtractUserParam(options.Database))
137137
r.Get("/",api.userByName)
138-
r.Put("/profile",api.updateUserProfile)
138+
r.Put("/profile",api.putUserProfile)
139139
r.Get("/organizations",api.organizationsByUser)
140140
r.Post("/organizations",api.postOrganizationsByUser)
141141
r.Post("/keys",api.postAPIKey)

‎coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (*api) userByName(rw http.ResponseWriter, r *http.Request) {
270270
render.JSON(rw,r,convertUser(user))
271271
}
272272

273-
func (api*api)updateUserProfile(rw http.ResponseWriter,r*http.Request) {
273+
func (api*api)putUserProfile(rw http.ResponseWriter,r*http.Request) {
274274
user:=httpmw.UserParam(r)
275275

276276
varparams codersdk.UpdateUserProfileRequest

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp