Revert "feat: Support config files with viper (#4558)" (#4692)

This reverts commit c8e299c8f1.
This commit is contained in:
Garrett Delfosse
2022-10-21 20:04:27 +00:00
committed by GitHub
parent 0d27b59ebb
commit a2fb444911
35 changed files with 1089 additions and 920 deletions
+3 -3
View File
@@ -92,7 +92,7 @@ type Options struct {
MetricsCacheRefreshInterval time.Duration
AgentStatsRefreshInterval time.Duration
Experimental bool
DeploymentConfig *codersdk.DeploymentConfig
DeploymentFlags *codersdk.DeploymentFlags
}
// New constructs a Coder API handler.
@@ -286,9 +286,9 @@ func New(options *Options) *API {
})
})
})
r.Route("/config", func(r chi.Router) {
r.Route("/flags", func(r chi.Router) {
r.Use(apiKeyMiddleware)
r.Get("/deployment", api.deploymentConfig)
r.Get("/deployment", api.deploymentFlags)
})
r.Route("/audit", func(r chi.Router) {
r.Use(