Skip to main content
Module

x/oak/router.ts>Router#entries

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Latest
method Router.prototype.entries
import { Router } from "https://deno.land/x/oak@v16.0.0/router.ts";

Iterate over the routes currently added to the router. To be compatible with the iterable interfaces, both the key and value are set to the value of the route.

Returns

IterableIterator<[Route<string>, Route<string>]>