Skip to main content
Module

x/aleph/framework/core/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.3.0-beta.7/framework/core/routing.ts";

Constructors

new
Routing(unnamed 0?: RoutingOptions)

Properties

private
_basePath: string
private
_defaultLocale: string
private
_locales: string[]
private
optional
_redirect: (url: string, replace?: boolean) => void
private
optional
_rewrites: Record<string, string>
private
_routes: Route[]
readonly
basePath
readonly
paths
readonly
routes: Route[]

Methods

private
_createRouter(location?: { pathname: string; search?: string; }): [RouterURL, string[]]
private
_lookup(
callback: (path: Route[]) => Boolean | void,
skipNestedIndex?,
__tracing?: Route[],
__routes?,
)
createRouter(location?: { pathname: string; search?: string; }): [RouterURL, string[]]
lookup(callback: (path: Route[]) => Boolean | void)
removeRouteByModule(specifier: string)
update(
path: string,
moduleUrl: string,
isIndex?: boolean,
)