Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.Router#[Symbol.iterator]

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
method oak.Router.prototype.[Symbol.iterator]
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/deps.ts";
const { Router } = oak;

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

Returns

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