Skip to main content
Module

x/alosaur/src/models/app-settings.ts

Alosaur - Deno web framework with many ES Decorators
Very Popular
Latest
File
import { Container } from "../di/mod.ts";import { StaticFilesConfig } from "./static-config.ts";import { ViewRenderConfig } from "./view-render-config.ts";import { IMiddleware } from "./middleware-target.ts";import { Type } from "../types/type.ts";import { ProviderDeclarations } from "../types/provider-declaration.ts";
/** * Application settings */export interface AppSettings { /** * Areas in application */ areas: Function[];
/** * Middlewares declares in app layer */ middlewares?: Type<IMiddleware>[];
/** * Config for serve static files */ staticConfig?: StaticFilesConfig;
/** * View render config for default action response View("index") */ viewRenderConfig?: ViewRenderConfig;
/** * Show log info to console */ logging?: boolean;
/** * Custom DI container */ container?: Container;
/** * Providers declared in app */ providers?: ProviderDeclarations[];}