mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: deployment flags (#4426)
This commit is contained in:
@ -82,6 +82,7 @@ type Options struct {
|
||||
MetricsCacheRefreshInterval time.Duration
|
||||
AgentStatsRefreshInterval time.Duration
|
||||
Experimental bool
|
||||
DeploymentFlags *codersdk.DeploymentFlags
|
||||
}
|
||||
|
||||
// New constructs a Coder API handler.
|
||||
@ -259,6 +260,10 @@ func New(options *Options) *API {
|
||||
})
|
||||
})
|
||||
})
|
||||
r.Route("/flags", func(r chi.Router) {
|
||||
r.Use(apiKeyMiddleware)
|
||||
r.Get("/deployment", api.deploymentFlags)
|
||||
})
|
||||
r.Route("/audit", func(r chi.Router) {
|
||||
r.Use(
|
||||
apiKeyMiddleware,
|
||||
|
Reference in New Issue
Block a user