Skip to main content
Deno 2 is finally here 🎉️
Learn more
method Router.prototype.entries
Re-export
import { Router } from "https://deno.land/x/ptero@3.0/Ptero/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, Route]>