-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
37 lines (30 loc) · 1.02 KB
/
server.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
// ---------------------------------------------------------------------------------------------------------------------
// Main lsdg-light-site module.
//
// @module server.js
// ---------------------------------------------------------------------------------------------------------------------
var path = require('path');
var app = require('omega-wf').app;
var views = require('./server/views');
// Communication Modules
require('./server/comm');
// ---------------------------------------------------------------------------------------------------------------------
app.router.add(
{
url: '/vendor/*',
path: path.join(__dirname, 'vendor')
},
{
url: '/*',
path: path.join(__dirname, 'build')
},
{
url: /^\/(?!admin)/,
get: views.index
}
);
// Set the application's name
app.setName('lsdg-light-site');
// Start the omega-wf app.
app.listen();
// ---------------------------------------------------------------------------------------------------------------------