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

x/danet/src/deps.ts>Router#entries

The most mature backend framework for Deno
Go to Latest
method Router.prototype.entries
import { Router } from "https://deno.land/x/danet@1.7.4/src/deps.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>]>