message
parent
13a9e46399
commit
3766fedbb5
|
|
@ -5,6 +5,7 @@ var path = require('path');
|
||||||
app.use(express.static('www'));
|
app.use(express.static('www'));
|
||||||
|
|
||||||
app.get('/*', function (req, res) {
|
app.get('/*', function (req, res) {
|
||||||
|
console.log(__dirname);
|
||||||
console.log(req.originalUrl);
|
console.log(req.originalUrl);
|
||||||
res.sendFile(path.join(__dirname, '../www', 'index.html'));
|
res.sendFile(path.join(__dirname, '../www', 'index.html'));
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue