-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (27 loc) · 807 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
var express = require('express');
var path = require('path');
var app = express();
app.set('port', 3000);
app.use(express.static(__dirname + '/public'));
app.set('views', __dirname + '/public/views');
app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.get('/ecs', function (req, res) {
res.render('ECS/index.html');
});
app.get('/pixi', function (req, res) {
res.render('pixijs/index.html');
});
/* useless and broken atm
app.get('/pixi_comp', function (req, res) {
res.render('pixi_comp/index.html');
});
*/
app.get('/jasmine', function (req, res) {
// 'root' dir for views is public/views, jasmine is in public/
res.render('../jasmine/SpecRunner.html');
});
app.get('/', function (req, res) {
res.render('index.html');
});
var server = app.listen(3000);