Enable gzip compression.

This commit is contained in:
Your Name 2014-06-06 13:13:07 +02:00
parent 5c568e649f
commit 273adb660c

View file

@ -8,6 +8,7 @@ angular.module('ffffng').factory('app', function (fs) {
var clientDir = __dirname + '/../client';
app.use(express.compress());
app.use('/', express.static(clientDir + '/'));
app.get('/', function (req, res, next) {
fs.readFile(clientDir + '/index.html', 'utf8', function (err, body) {