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#keys

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

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

Returns

IterableIterator<Route<string>>