16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
var path = require('path');
|
|
|
|
app.use(express.static('www'));
|
|
|
|
app.get('/*', function (req, res) {
|
|
console.log(req.originalUrl);
|
|
res.sendFile(path.join(__dirname, './www', 'index.html'));
|
|
})
|
|
|
|
app.listen(27641, function () {
|
|
console.log('Example app listening on port 3000!');
|
|
})
|
|
|