message
parent
a826033aea
commit
bb7347fb3d
|
|
@ -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