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

x/superdeno/test/deps.ts>Oak.Router#entries

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
method Oak.Router.prototype.entries
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/deps.ts";
const { Router } = Oak;

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>]>