MCPcopy
hub / github.com/pocketbase/pocketbase / PATCH

Method PATCH

tools/router/group.go:156–158  ·  view source on GitHub ↗

PATCH is a shorthand for [RouterGroup.AddRoute] with PATCH as route method.

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

Source from the content-addressed store, hash-verified

154
155// PATCH is a shorthand for [RouterGroup.AddRoute] with PATCH as route method.
156func (group *RouterGroup[T]) PATCH(path string, action func(e T) error) *Route[T] {
157 return group.Route(http.MethodPatch, path, action)
158}
159
160// PUT is a shorthand for [RouterGroup.AddRoute] with PUT as route method.
161func (group *RouterGroup[T]) PUT(path string, action func(e T) error) *Route[T] {

Callers 4

bindRecordCrudApiFunction · 0.80
bindCollectionApiFunction · 0.80
bindSettingsApiFunction · 0.80

Calls 1

RouteMethod · 0.95

Tested by 1