mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add license check for prebuilds (#20947)
Related: https://github.com/coder/coder/pull/20864
This commit is contained in:
@@ -460,7 +460,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
|
||||
})
|
||||
r.Route("/templates/{template}/prebuilds", func(r chi.Router) {
|
||||
r.Use(
|
||||
api.templateRBACEnabledMW,
|
||||
api.RequireFeatureMW(codersdk.FeatureWorkspacePrebuilds),
|
||||
apiKeyMiddleware,
|
||||
httpmw.ExtractTemplateParam(api.Database),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user