mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: manage health settings using Coder API (#10861)
This commit is contained in:
@ -970,7 +970,13 @@ func New(options *Options) *API {
|
||||
|
||||
r.Get("/coordinator", api.debugCoordinator)
|
||||
r.Get("/tailnet", api.debugTailnet)
|
||||
r.Get("/health", api.debugDeploymentHealth)
|
||||
r.Route("/health", func(r chi.Router) {
|
||||
r.Get("/", api.debugDeploymentHealth)
|
||||
r.Route("/settings", func(r chi.Router) {
|
||||
r.Get("/", api.deploymentHealthSettings)
|
||||
r.Put("/", api.putDeploymentHealthSettings)
|
||||
})
|
||||
})
|
||||
r.Get("/ws", (&healthcheck.WebsocketEchoServer{}).ServeHTTP)
|
||||
r.Route("/{user}", func(r chi.Router) {
|
||||
r.Use(httpmw.ExtractUserParam(options.Database))
|
||||
|
Reference in New Issue
Block a user