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

x/alosaur/mod.ts>App

Alosaur - Deno web framework with many decorators
Go to Latest
class App
import { App } from "https://deno.land/x/alosaur@v0.21.0/mod.ts";

Constructors

new
App(settings: AppSettings)

Properties

private
classes: ObjectKeyAny[]
private
optional
globalErrorHandler: (ctx: Context<TState>, error: Error) => void
private
readonly
metadata: MetadataArgsStorage<TState>
private
routes: RouteMetadata[]
private
server: Server | undefined
private
staticConfig: StaticFilesConfig | undefined
private
optional
transformConfigMap: TransformConfigMap | undefined
private
viewRenderConfig: ViewRenderConfig | undefined

Methods

close(): void
error(globalErrorHandler: (ctx: Context<TState>, error: Error) => void): void

Create one global error handler

listen(address?: string | HTTPOptions): Promise<Server>
use(route: RegExp, middleware: MiddlewareTarget<TState>): void
useCors(builder: CorsBuilder<TState>): void

Deprecate

useTransform(transform: TransformConfig): void