-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
36 lines (29 loc) · 2.19 KB
/
server.js
File metadata and controls
36 lines (29 loc) · 2.19 KB
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
var express = require('express'),
app = express();
app.get('/', function (req, res) {
res.sendFile(__dirname + '/client/views/index.html');
});
app.get('/residence', function (req, res) {
res.sendFile(__dirname + '/walkthroughs/residence/residence.html');
});
app.get('/office', function (req, res) {
res.sendFile(__dirname + '/walkthroughs/office/office.html');
});
app.use("/json2.js", express.static(__dirname + "/walkthroughs/residence/json2.js"));
app.use("/jStorage.js", express.static(__dirname + "/walkthroughs/residence/jStorage.js"));
app.use("/moz_binarystring.js", express.static(__dirname + "/walkthroughs/residence/moz_binarystring.js"));
app.use("/U_Sample_TH_Web.data", express.static(__dirname + "/walkthroughs/residence/U_Sample_TH_Web.data"));
app.use("/U_Sample_TH_Web.data.js", express.static(__dirname + "/walkthroughs/residence/U_Sample_TH_Web.data.js"));
app.use("/UE4Game-HTML5-Shipping.js", express.static(__dirname + "/walkthroughs/residence/UE4Game-HTML5-Shipping.js"));
app.use("/UE4Game-HTML5-Shipping.js.mem", express.static(__dirname + "/walkthroughs/residence/UE4Game-HTML5-Shipping.js.mem"));
app.use("/UE4Game-HTML5-Shipping.js.symbols", express.static(__dirname + "/walkthroughs/residence/UE4Game-HTML5-Shipping.js.symbols"));
app.use("/json2.js", express.static(__dirname + "/walkthroughs/office/json2.js"));
app.use("/jStorage.js", express.static(__dirname + "/walkthroughs/office/jStorage.js"));
app.use("/moz_binarystring.js", express.static(__dirname + "/walkthroughs/office/moz_binarystring.js"));
app.use("/SBG_NewOffice_Web.data", express.static(__dirname + "/walkthroughs/office/SBG_NewOffice_Web.data"));
app.use("/SBG_NewOffice_Web.data.js", express.static(__dirname + "/walkthroughs/office/SBG_NewOffice_Web.data.js"));
app.use("/UE4Game-HTML5-Shipping.js", express.static(__dirname + "/walkthroughs/office/UE4Game-HTML5-Shipping.js"));
app.use("/UE4Game-HTML5-Shipping.js.mem", express.static(__dirname + "/walkthroughs/office/UE4Game-HTML5-Shipping.js.mem"));
app.use("/UE4Game-HTML5-Shipping.js.symbols", express.static(__dirname + "/walkthroughs/office/UE4Game-HTML5-Shipping.js.symbols"));
var port = process.env.PORT || CONFIG.port;
app.listen(port);