Skip to main content
Module

x/oak/router.ts>Router#forEach

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

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
optional
thisArg: any = [UNSUPPORTED]