Skip to main content
Go to Latest
class DynamicRouter
Re-export
import { DynamicRouter } from "https://deno.land/x/frugal@0.2.1/packages/frugal_oak/mod.ts";

An oak Router where all dynamic routes in a Frugal instance are registered.

The router handle GET methods for each route. If the page of a route has a postDynamicData method, the router also handle POST method for this route.

Constructors

new
DynamicRouter(frugal: FrugalInstance, prgOrchestrator: PrgOrchestrator)

Methods

Return the allowed method middleware from the underlying oak Router.

Return the route middleware from the underlying oak Router.