import { App } from "https://deno.land/x/alosaur@v0.24.1/src/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: IMiddleware<TState>): void
useCors(builder: CorsBuilder<TState>): void
Deprecate
useStatic(config?: StaticFilesConfig): void
useTransform(transform: TransformConfig): void
useViewRender(config?: ViewRenderConfig): void