import { App } from "https://deno.land/x/alosaur@v0.21.0/mod.ts";
Constructors
new
App(settings: AppSettings)Properties
private
classes: ObjectKeyAny[]private
readonly
metadata: MetadataArgsStorage<TState>private
routes: RouteMetadata[]private
server: Server | undefinedprivate
staticConfig: StaticFilesConfig | undefinedprivate
optional
transformConfigMap: TransformConfigMap | undefinedprivate
viewRenderConfig: ViewRenderConfig | undefinedMethods
close(): 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
useStatic(config?: StaticFilesConfig): void
useTransform(transform: TransformConfig): void
useViewRender(config?: ViewRenderConfig): void