Files
capsule/internal/webhook/route/node.go
Oliver Bähler 581a8fe60e feat(controller): administration persona (#1739)
* chore(refactor): project and api refactoring

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore(refactor): project and api refactoring

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2025-11-18 16:27:16 +01:00

25 lines
477 B
Go

// Copyright 2020-2025 Project Capsule Authors
// SPDX-License-Identifier: Apache-2.0
package route
import (
capsulewebhook "github.com/projectcapsule/capsule/internal/webhook"
)
type node struct {
handlers []capsulewebhook.Handler
}
func Node(handler ...capsulewebhook.Handler) capsulewebhook.Webhook {
return &node{handlers: handler}
}
func (n *node) GetHandlers() []capsulewebhook.Handler {
return n.handlers
}
func (n *node) GetPath() string {
return "/nodes"
}