Blame view

web.js 266 Bytes
c87bc1f33   TRUONG   first commit: ini...
1
2
3
4
5
6
7
8
  var gzippo = require('gzippo');
  var express = require('express');
  var app = express();
  app.use(gzippo.staticGzip("" + __dirname + "/dist"));
  app.get('*', function(req, res){
      res.sendFile(__dirname + '/dist/index.html');
  });
  app.listen(process.env.PORT || 5005);