Browse Source

actually launch the app

master
Julio Biason 11 years ago
parent
commit
a6bde25e74
  1. 6
      app.js

6
app.js

@ -3,7 +3,7 @@ var http = require('http');
var path = require('path'); var path = require('path');
var favicon = require('static-favicon'); var favicon = require('static-favicon');
var logger = require('morgan'); var logger = require('morgan');
var cookieParser = require('cookie-parser'); // var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser'); var bodyParser = require('body-parser');
var routes = require('./routes'); var routes = require('./routes');
@ -15,7 +15,7 @@ app.use(favicon());
app.use(logger('dev')); app.use(logger('dev'));
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(bodyParser.urlencoded()); app.use(bodyParser.urlencoded());
app.use(cookieParser()); // app.use(cookieParser());
app.use(app.router); app.use(app.router);
app.get('/', routes.index); app.get('/', routes.index);
@ -51,3 +51,5 @@ app.use(function(err, req, res, next) {
}); });
module.exports = app; module.exports = app;
app.listen(3000);

Loading…
Cancel
Save