MCPcopy
hub / github.com/pocketbase/pocketbase / Any

Method Any

tools/router/group.go:131–133  ·  view source on GitHub ↗

Any is a shorthand for [RouterGroup.AddRoute] with "" as route method (aka. matches any method).

(path string, action func(e T) error)

Source from the content-addressed store, hash-verified

129
130// Any is a shorthand for [RouterGroup.AddRoute] with "" as route method (aka. matches any method).
131func (group *RouterGroup[T]) Any(path string, action func(e T) error) *Route[T] {
132 return group.Route("", path, action)
133}
134
135// GET is a shorthand for [RouterGroup.AddRoute] with GET as route method.
136func (group *RouterGroup[T]) GET(path string, action func(e T) error) *Route[T] {

Callers 11

resolveAttrMethod · 0.80
TestRouterFunction · 0.80
TestRouterGroupHasRouteFunction · 0.80
logRequestFunction · 0.80
downloadMethod · 0.80
realtimeSetSubscriptionsFunction · 0.80
bindRealtimeEventsFunction · 0.80
realtimeBroadcastRecordFunction · 0.80
bindUIExtensionsFunction · 0.80

Calls 1

RouteMethod · 0.95

Tested by 4

TestRouterFunction · 0.64
TestRouterGroupHasRouteFunction · 0.64