TFTPaths/index.js

18 lines
429 B
JavaScript
Raw Normal View History

2019-08-19 20:00:53 +02:00
//Install express server
const express = require('express');
const path = require('path');
var app = express();
// Start the app by listening on the default Heroku port
var port = 8080;
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(port, function()
{
console.log("ok");
});