Skip to main content
Module

x/oak_sessions/deps.ts>Router#forEach

Session middleware for Oak
Go to Latest
method Router.prototype.forEach
import { Router } from "https://deno.land/x/oak_sessions@v4.0.4/deps.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]