Added server option "useCdn", use template statement to route resources' source

This commit is contained in:
Wu Cheng-Han 2015-09-22 12:06:13 +08:00
parent 09a1e662f9
commit b6c758f2fc
8 changed files with 71 additions and 16 deletions

4
app.js
View file

@ -136,9 +136,7 @@ app.set('views', __dirname + '/public');
//set render engine
app.engine('html', ejs.renderFile);
//get index
app.get("/", function (req, res, next) {
res.render("index.html");
});
app.get("/", response.showIndex);
//get status
app.get("/status", function (req, res, next) {
realtime.getStatus(function (data) {