import { App } from "https://deno.land/x/alosaur@v0.30.0/mod.ts";
Constructors
new
App(settings: AppSettings)Properties
private
_routes: RouteMetadata[]private
optional
_staticConfig: StaticFilesConfigprivate
classes: ObjectKeyAny[]private
readonly
metadata: MetadataArgsStorage<TState>private
server: Server | undefinedprivate
viewRenderConfig: ViewRenderConfig | undefinedoptional
_transformConfigMap: TransformConfigMapreadonly
routes: RouteMetadata[]readonly
staticConfig: StaticFilesConfig | undefinedreadonly
transformConfigMap: TransformConfigMap | undefinedMethods
private
isRunFullServer(): booleanprivate
sortMiddlewares(settings: AppSettings)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