Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aleph/server/types.ts>RouterInit

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface RouterInit
import { type RouterInit } from "https://deno.land/x/aleph@1.0.0-beta.42/server/types.ts";

The router options for the file-system based routing.

Properties

optional
basePath: string

The base url of the router. Dafault is /

optional
glob: string

The glob to match routes.

optional
dir: string

The directory of the FS routing. Default is ./routes

optional
exts: string[]

The extnames to match routes.

optional
moduleURL: string

The route module URL.

optional
modules: Record<string, Record<string, unknown>>

The pre-built module.

Methods

optional
onChange(): void

The handler to handle the router change.