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

Registers a PUT 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";