-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
app-settings.ts
46 lines (39 loc) · 988 Bytes
/
app-settings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { StaticFilesConfig } from "./static-config.ts";
import { ViewRenderConfig } from "./view-render-config.ts";
import { DependencyContainer, Provider } from "../injection/index.ts";
import { IMiddleware } from "./middleware-target.ts";
import { Type } from "../types/type.ts";
import { ProviderDeclaration } 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?: DependencyContainer;
/**
* Providers declared in app
*/
providers?: ProviderDeclaration[];
}