omni/internal/backend/debug/debug_disabled.go
Artem Chernyshev ed946b30a6
feat: display OMNI_ENDPOINT in the service account creation UI
Fixes: https://github.com/siderolabs/omni/issues/858

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2025-01-29 15:27:36 +03:00

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)
}