тестинг

This commit is contained in:
Alexey Kasyanchuk
2017-01-05 12:53:32 +03:00
parent db5d53ebc7
commit 2048ad9b1c
2 changed files with 25 additions and 0 deletions

15
index.mod.js Normal file
View File

@ -0,0 +1,15 @@
var express = require('express');
var app = express();
app.get('/', function(req, res)
{
res.sendfile(__dirname + '/build/index.html');
});
app.use(express.static('build'));
app.get('*', function(req, res)
{
res.sendfile(__dirname + '/build/index.html');
});