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

An oak Router where all static 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
StaticRouter(
prgOrchestrator: PrgOrchestrator,
refreshKey?: string,
)

Methods

Return the allowed method middleware from the underlying oak Router.

Return the route middleware from the underlying oak Router.