Przeglądaj źródła

serve trixl on a shorter url as well.

Lucas Stadler 12 lat temu
rodzic
commit
4145f00578
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      js/pixl/server.js

+ 4 - 0
js/pixl/server.js

@ -7,6 +7,10 @@ var path = require('path');
7 7
var app = express();
8 8
app.use(express.static(__dirname + "/public"));
9 9
10
app.get('/3', function(req, res) {
11
	res.sendfile('trixl.html', {root: './public'});
12
});
13
10 14
app.get('/stats', function(req, res) {
11 15
	var stats = {
12 16
		users: wss.clients.length,