Skip to main content
Module

x/oak/mod.ts>route

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function route
import { route } from "https://deno.land/x/oak@v13.1.0/mod.ts";

Wrap a handler function to generate middleware that can be used with an oak Router. This allows the handler to deal with a Fetch API standard Request and return a standard Response.

Type Parameters

R extends string
P extends RouteParams<R>
S extends State

Parameters

middleware: ServeRouterMiddleware<R, P, S>