-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleConfig.cfc
44 lines (37 loc) · 929 Bytes
/
ModuleConfig.cfc
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
component {
// Module Properties
this.title = "cbSwaggerUI";
this.author = "Daniel Garcia";
this.webURL = "https://github.com/garciadev/cbSwaggerUI";
this.description = "Swagger UI Documentation for ColdBox.";
this.version = "1.0.0";
this.entryPoint = "cbSwaggerUI";
this.inheritEntryPoint = false;
this.modelNamespace = "cbSwaggerUI";
this.cfmapping = "cbSwaggerUI";
this.autoMapModels = true;
this.dependencies = [];
function configure(){
settings = {
"swaggerFiles" : [ "/cbswagger" ],
"primaryName" : "",
"deepLinking" : true,
"operationsSorter" : "method",
"tagsSorter" : "alpha",
"filter" : true,
"disableFallback" : true
};
// Layout Settings
layoutSettings = {
defaultLayout = "main.cfm"
};
// SES Routes
router.route( "/" )
.withHandler( "main" )
.toAction( { "GET": "index" } );
}
function onLoad(){
}
function onUnload(){
}
}