message
parent
3070ce3fa5
commit
073ff98da9
|
|
@ -2,11 +2,11 @@ const express = require('express');
|
|||
const app = express();
|
||||
var path = require('path');
|
||||
|
||||
app.use(express.static('www'));
|
||||
app.use(express.static('../www'));
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
console.log(req.originalUrl);
|
||||
res.sendFile(path.join(__dirname, './www', 'index.html'));
|
||||
res.sendFile(path.join(__dirname, '../www', 'index.html'));
|
||||
})
|
||||
|
||||
app.listen(25776, function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue