Skip to main content
Module

x/create_react_app/deps.ts>oak.Router#patch

Create React App with Deno
Latest
method oak.Router.prototype.patch
import { oak } from "https://deno.land/x/create_react_app@v0.1.2/deps.ts";
const { Router } = oak;

Register named middleware for the specified routes when the PATCH, method is requested.

Type Parameters

optional
P extends RouteParams = RP
optional
S extends State = RS

Parameters

name: string
path: string
...middleware: RouterMiddleware<P, S>[]

Returns

Router<P extends RP ? P : (P & RP), S extends RS ? S : (S & RS)>

Register middleware for the specified routes when the PATCH, method is requested.

Type Parameters

optional
P extends RouteParams = RP
optional
S extends State = RS

Parameters

path: string
...middleware: RouterMiddleware<P, S>[]

Returns

Router<P extends RP ? P : (P & RP), S extends RS ? S : (S & RS)>