Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/router.ts>Router#delete

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method Router.prototype.delete
import { Router } from "https://deno.land/x/oak@v10.4.0/router.ts";

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

Type Parameters

R extends string
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = RS

Parameters

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

Returns

Router<S extends RS ? S : (S & RS)>

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

Type Parameters

R extends string
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = RS

Parameters

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

Returns

Router<S extends RS ? S : (S & RS)>