-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (33 loc) · 1011 Bytes
/
index.js
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
// Dependencies
const Path = require('path');
// Chech for updates
require('./lib/CheckForUpdates').CheckForUpdates();
// Export functionality
module.exports = {
Setup: require('./lib/ExpressOctopusCore'),
OctopusEndPoint: require('./lib/OctopusEndPoint'),
DefaultConfiguration: {
Production: {
path: Path.join(process.cwd(), '/', 'endpoints'),
developer: false,
printMessages: false,
cache: {
enabled: true,
path: Path.join(process.cwd(), '/cache/'),
expiration: 30
},
_default_: 'production'
},
Development: {
path: Path.join(process.cwd(), '/', 'endpoints'),
developer: true,
printMessages: true,
cache: {
enabled: true,
path: Path.join(process.cwd(), '/cache/'),
expiration: 30
},
_default_: 'development'
}
}
};