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

x/fastro/mod.ts>default

The Web Framework for Full Stack Apps
Go to Latest
class default
implements Fastro
import { default } from "https://deno.land/x/fastro@v0.77.10/mod.ts";

Constructors

new
default(options?: { port?: number; })

Properties

finished: () => unknown
hook: (hook: Hook) => unknown
onListen: (handler: ListenHandler) => unknown
record: Record<string, any>
register: (mf: ModuleFunction) => unknown
serve: (options?: { port: number; }) => unknown

Methods

delete(path: string, ...handler: Array<HandlerArgument>)
get(path: string, ...handler: Array<HandlerArgument>)
getNest(): Nest
head(path: string, ...handler: Array<HandlerArgument>)
options(path: string, ...handler: Array<HandlerArgument>)
page(
path: string,
element: Component,
...handlers: MiddlewareArgument[],
): Fastro
patch(path: string, ...handler: Array<HandlerArgument>)
post(path: string, ...handler: Array<HandlerArgument>)
push(
method?: string,
path?: string,
...handler: Array<HandlerArgument>,
)
put(path: string, ...handler: Array<HandlerArgument>)
static(path: string, options?: { maxAge?: number; folder?: string; })
use(...handler: HandlerArgument[])