This repository has been archived on 2019-10-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2018-11-08 18:36:12 +01:00
|
|
|
const express = require('express');
|
|
|
|
|
const app = express();
|
|
|
|
|
|
|
|
|
|
app.use(express.static(__dirname + '/build'));
|
|
|
|
|
|
2018-11-14 15:08:21 +01:00
|
|
|
app.get('/test/:id', (req, res) => {
|
|
|
|
|
// req.params.id
|
|
|
|
|
// new wiki().page(req.params.id)
|
|
|
|
|
// .then(page => page.fullInfo())
|
|
|
|
|
// .then(parsed => res.send(parsed));
|
|
|
|
|
res.send({ok:req.params.id});
|
2018-11-08 18:36:12 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.listen(8000, () => console.log('listen on 8000'));
|