Skip to main content
Module

x/aleph/routing.ts>Routing

The Full-stack Framework in Deno.
Very Popular
Go to Latest
class Routing
import { Routing } from "https://deno.land/x/aleph@v0.2.21/routing.ts";

Constructors

new
Routing(
routes?: Route[],
baseUrl?: string,
defaultLocale?: string,
locales?: string[],
)

Properties

private
_baseUrl: string
private
_defaultLocale: string
private
_locales: string[]
private
_routes: Route[]
readonly
baseUrl
readonly
paths
readonly
routes: Route[]

Methods

private
_lookup(
callback: (path: Route[]) => Boolean | void,
skipNestIndex?,
__tracing?: Route[],
__routes?,
)
createRouter(location?: { pathname: string; search?: string; }): [RouterURL, RouteModule[]]
lookup(callback: (path: Route[]) => Boolean | void)
removeRoute(moduleId: string)