Skip to main content
Deno 2 is finally here 🎉️
Learn more
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-alpha.32/framework/core/routing.ts";

Constructors

new
Routing(unnamed 0: RoutingOptions)

Properties

private
_basePath: string
private
_defaultLocale: string
private
_locales: string[]
private
_rewrites: Record<string, string>
private
_routes: Route[]
readonly
basePath
readonly
paths
readonly
routes: Route[]

Methods

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