Archived
test
This commit is contained in:
+6
-2
@@ -3,8 +3,12 @@ const app = express();
|
||||
|
||||
app.use(express.static(__dirname + '/build'));
|
||||
|
||||
app.get('/test', (req, res) => {
|
||||
res.send({ ok: 'ok get' });
|
||||
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});
|
||||
});
|
||||
|
||||
app.listen(8000, () => console.log('listen on 8000'));
|
||||
|
||||
Reference in New Issue
Block a user