Make the demo as the home page

This commit is contained in:
Raymond Feng 2014-03-21 17:30:30 -07:00
parent dc145edc28
commit ca98e3d55c
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ var container = ds.createModel('container');
app.model(container); app.model(container);
/*
app.get('/', function (req, res, next) { app.get('/', function (req, res, next) {
res.setHeader('Content-Type', 'text/html'); res.setHeader('Content-Type', 'text/html');
var form = "<html><body><h1>Storage Service Demo</h1>" + var form = "<html><body><h1>Storage Service Demo</h1>" +
@ -38,6 +39,7 @@ app.get('/', function (req, res, next) {
res.send(form); res.send(form);
res.end(); res.end();
}); });
*/
app.listen(app.get('port')); app.listen(app.get('port'));
console.log('http://127.0.0.1:' + app.get('port')); console.log('http://127.0.0.1:' + app.get('port'));