Skip to content

definePatch

definePatch(config, execute): object

Defined in: define-route.js:71

Type-inference helper for PATCH routes. Alias for definePost — PATCH routes share the same auto-included body typing as POST/PUT.

object

Middleware configuration (without execute).

Function

Route handler receiving the inferred accumulator.

object

RouteConfig object with config and execute merged.