changes in routes
This commit is contained in:
parent
53b429ede0
commit
33a41855ad
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
|
@ -4,10 +4,10 @@ const path = require('path');
|
|||
|
||||
var app = express();
|
||||
|
||||
app.use(express.static(__dirname + '/dist'));
|
||||
app.use(express.static(__dirname + '/dist/assets'));
|
||||
app.use(express.static(__dirname + '/dist/TFTPaths'));
|
||||
app.use(express.static(__dirname + '/dist/TFTPaths/assets'));
|
||||
app.get('*',function(req,res){
|
||||
res.sendFile(__dirname + '/dist/index.html');
|
||||
res.sendFile(__dirname + '/dist/TFTPaths/index.html');
|
||||
});
|
||||
|
||||
app.listen(8080, function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue