Skip to content

Commit 1b75a3a

Browse files
committed
rename api endpoint handler
1 parent d2f512a commit 1b75a3a

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
@@ -1137,7 +1137,7 @@ func New(options *Options) *API {
11371137
})
11381138
r.Route("/provisionerkeys", func(r chi.Router) {
11391139
r.Route("/{provisionerkeyid}", func(r chi.Router) {
1140-
r.Get("/tags", api.getProvisionKeyTags)
1140+
r.Get("/tags", api.provisionerKeyTags)
11411141
})
11421142
})
11431143
r.Route("/workspaceagents", func(r chi.Router) {

coderd/provisionerkeys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
// @Param provisionerkeyid path string true "Provisioner Key ID" format(uuid)
2222
// @Success 200 {object} codersdk.ProvisionerKeyTags
2323
// @Router /provisionerkeys/{provisionerkeyid}/tags [get]
24-
func (api *API) getProvisionKeyTags(rw http.ResponseWriter, r *http.Request) {
24+
func (api *API) provisionerKeyTags(rw http.ResponseWriter, r *http.Request) {
2525
var (
2626
ctx = r.Context()
2727
keyID = chi.URLParam(r, "provisionerkeyid")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy