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

x/oak/router.ts>Router#[Symbol.iterator]

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Router.prototype.[Symbol.iterator]
import { Router } from "https://deno.land/x/oak@v17.1.2/router.ts";

Provide an iterator interface that iterates over the routes registered with the router.

Returns

IterableIterator<Route<string, RouteParams<string>, RS>>