mirror of
https://github.com/siderolabs/omni.git
synced 2025-08-07 18:17:00 +02:00
Fixes: https://github.com/siderolabs/omni/issues/858 Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
17 lines
413 B
Go
17 lines
413 B
Go
// Copyright (c) 2025 Sidero Labs, Inc.
|
|
//
|
|
// Use of this software is governed by the Business Source License
|
|
// included in the LICENSE file.
|
|
|
|
//go:build !sidero.debug
|
|
|
|
package debug
|
|
|
|
import "net/http"
|
|
|
|
// ServeHTTP handles debug requests.
|
|
func (handler *Handler) ServeHTTP(w http.ResponseWriter, _ *http.Request) {
|
|
// no debug handlers when debug is disabled
|
|
http.Error(w, "Not found", http.StatusNotFound)
|
|
}
|