File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1089,7 +1089,10 @@ func New(options *Options) *API {
1089
1089
// The idea is to return an empty [], so that the coder CLI won't get blocked accidentally.
1090
1090
r .Get ("/schema" , templateVersionSchemaDeprecated )
1091
1091
r .Get ("/parameters" , templateVersionParametersDeprecated )
1092
- r .Get ("/dynamic-parameters" , api .templateVersionDynamicParameters )
1092
+ r .Group (func (r chi.Router ) {
1093
+ r .Use (httpmw .RequireExperiment (api .Experiments , codersdk .ExperimentDynamicParameters ))
1094
+ r .Get ("/dynamic-parameters" , api .templateVersionDynamicParameters )
1095
+ })
1093
1096
r .Get ("/rich-parameters" , api .templateVersionRichParameters )
1094
1097
r .Get ("/external-auth" , api .templateVersionExternalAuth )
1095
1098
r .Get ("/variables" , api .templateVersionVariables )
You can’t perform that action at this time.
0 commit comments