-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.d.ts
43 lines (34 loc) · 1.04 KB
/
config.d.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
// @themost-framework 2.0 Codename Blueshift Copyright (c) 2017-2025, THEMOST LP All rights reserved
import {ConfigurationBase} from "@themost/common";
export declare class MimeTypeConfiguration {
extension: string;
type: string;
}
export declare class HttpViewEngineConfiguration {
name: string;
type: string;
extension: string;
}
export declare class HttpRouteConfiguration {
url: string;
action?: string;
controller?: string;
format?: string;
mime?: string;
params?: any;
path?: string;
name?: string;
}
export declare class HttpHandlerConfiguration {
name: string;
type: string;
}
export declare class HttpConfiguration extends ConfigurationBase {
constructor(configPath: string);
readonly engines:Array<HttpViewEngineConfiguration>;
readonly routes:Array<HttpRouteConfiguration>;
readonly mimes:Array<MimeTypeConfiguration>;
readonly handlers:Array<HttpHandlerConfiguration>;
readonly controllers:Array<any>;
getMimeType(extension: string):MimeTypeConfiguration;
}