
/**
 * Module dependencies.
 */

var express   = require('express');
var unminify  = require('./lib/unminify');
var path      = require('path');
var app       = module.exports = express();

app.locals.package = require('../../package.json');
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('change this value to something unique'));
app.use(express.cookieSession());
app.use(unminify(app));
app.use(express.static(path.join(__dirname, '../../public')));
app.use(app.router);
app.use(express.compress());

if ('development' === app.get('env')) {
  app.use(express.errorHandler());
}

app.get('*', function(req, res) {
  res.render('index.twig');
});


/**
 * Module dependencies.
 */

var express   = require('express');
var unminify  = require('./lib/unminify');
var path      = require('path');
var app       = module.exports = express();

app.locals.package = require('../../package.json');
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('change this value to something unique'));
app.use(express.cookieSession());
app.use(unminify(app));
app.use(express.compress());
app.use(express.static(path.join(__dirname, '../../public')));
app.use(app.router);

if ('development' === app.get('env')) {
  app.use(express.errorHandler());
}

app.get('*', function(req, res) {
  res.render('index.twig');
});

Fix compress middleware order