(srv *server.Server, m *mux.Router)
| 318 | } |
| 319 | |
| 320 | func (c *commandServerStart) setupHandlers(srv *server.Server, m *mux.Router) { |
| 321 | if c.serverStartControlAPI { |
| 322 | srv.SetupControlAPIHandlers(m) |
| 323 | } |
| 324 | |
| 325 | if c.serverStartUI { |
| 326 | srv.SetupHTMLUIAPIHandlers(m) |
| 327 | |
| 328 | if c.serverStartHTMLPath != "" { |
| 329 | srv.ServeStaticFiles(m, http.Dir(c.serverStartHTMLPath)) |
| 330 | } else { |
| 331 | srv.ServeStaticFiles(m, server.AssetFile()) |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | func initPrometheus(m *mux.Router) { |
| 337 | m.Handle("/metrics", promhttp.Handler()) |
no test coverage detected