x/oak/router.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Router.prototype.forEach
import { Router } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/router.ts?p=prototype.forEach&s=Router";

Iterate over the routes currently added to the router, calling the callback function for each value.

Parameters

callback: (
value1: Route<string>,
value2: Route<string>,
router: this,
) => void
[src]
optional
thisArg: any
[src]