method IRouterApi.patch
IRouterApi.patch(
path: string,
): void

Registers a PATCH route.

Parameters

path: string

Route path

Handler or full route definition

Return Type

void

Throws

When this method and path are already registered — a duplicate would otherwise replace the earlier route and silently shadow it

Usage

import { type IRouterApi } from "common/src/index.ts";