Skip to content

Commit 217ea69

Browse files
committed
fix
1 parent d6e5207 commit 217ea69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coderd/coderd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ func New(options *Options) *API {
564564
r.Patch("/cancel", api.patchCancelTemplateVersion)
565565
// Old agents may expect a non-error response from /schema and /parameters endpoints.
566566
// The idea is to return an empty [], so that the coder CLI won't get blocked accidentally.
567-
r.Get("/schema", api.templateVersionSchemaDeprecated)
568-
r.Get("/parameters", api.templateVersionParametersDeprecated)
567+
r.Get("/schema", templateVersionSchemaDeprecated)
568+
r.Get("/parameters", templateVersionParametersDeprecated)
569569
r.Get("/rich-parameters", api.templateVersionRichParameters)
570570
r.Get("/gitauth", api.templateVersionGitAuth)
571571
r.Get("/variables", api.templateVersionVariables)

coderd/deprecated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// @Param templateversion path string true "Template version ID" format(uuid)
1515
// @Success 200
1616
// @Router /templateversions/{templateversion}/parameters [get]
17-
func (api *API) templateVersionParametersDeprecated(rw http.ResponseWriter, r *http.Request) {
17+
func templateVersionParametersDeprecated(rw http.ResponseWriter, r *http.Request) {
1818
httpapi.Write(r.Context(), rw, http.StatusOK, []struct{}{})
1919
}
2020

@@ -26,6 +26,6 @@ func (api *API) templateVersionParametersDeprecated(rw http.ResponseWriter, r *h
2626
// @Param templateversion path string true "Template version ID" format(uuid)
2727
// @Success 200
2828
// @Router /templateversions/{templateversion}/schema [get]
29-
func (api *API) templateVersionSchemaDeprecated(rw http.ResponseWriter, r *http.Request) {
29+
func templateVersionSchemaDeprecated(rw http.ResponseWriter, r *http.Request) {
3030
httpapi.Write(r.Context(), rw, http.StatusOK, []struct{}{})
3131
}

0 commit comments

Comments
 (0)