TFTPaths/index.js

16 lines
382 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();
2019-08-19 20:13:31 +02:00
app.use(express.static(__dirname + '/dist/TFTPaths'));
app.use(express.static(__dirname + '/dist/TFTPaths/assets'));
2019-08-19 20:00:53 +02:00
app.get('*',function(req,res){
2019-08-19 20:13:31 +02:00
res.sendFile(__dirname + '/dist/TFTPaths/index.html');
2019-08-19 20:00:53 +02:00
});
2019-08-19 20:09:13 +02:00
app.listen(8080, function()
2019-08-19 20:00:53 +02:00
{
console.log("ok");
});