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

x/alosaur/src/mod.ts>App

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class App
import { App } from "https://deno.land/x/alosaur@v0.24.1/src/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: IMiddleware<TState>): void
useCors(builder: CorsBuilder<TState>): void

Deprecate

useTransform(transform: TransformConfig): void