-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
30 lines (26 loc) · 878 Bytes
/
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
var http = require('http');
var express = require('express');
var mustachex = require('mustachex');
var db = require('./lib/db');
var app = express();
app.configure(function() {
app.engine('html', mustachex.express);
app.set('view engine', 'html');
app.set('views', __dirname + '/views');
app.use(express.bodyParser());
app.use(express.static(__dirname + '/public'));
app.use(app.router);
});
require('./routes/admin')(app);
require('./routes/events')(app);
require('./routes/dashboard')(app);
require('./routes/challenge1')(app);
require('./routes/challenge2')(app);
require('./routes/challenge3')(app);
require('./routes/challenge4')(app);
require('./routes/challenge5')(app);
require('./routes/challenge6')(app);
require('./routes/challenge7')(app);
require('./routes/challenge8')(app);
require('./routes/saboteur')(app);
http.createServer(app).listen(8808);