TFTPaths/index.js
Daniel Rodriguez 53b429ede0 Changes in port
2019-08-19 20:09:13 +02:00

16 lines
No EOL
355 B
JavaScript

//Install express server
const express = require('express');
const path = require('path');
var app = express();
app.use(express.static(__dirname + '/dist'));
app.use(express.static(__dirname + '/dist/assets'));
app.get('*',function(req,res){
res.sendFile(__dirname + '/dist/index.html');
});
app.listen(8080, function()
{
console.log("ok");
});