Showing
1 changed file
with
12 additions
and
0 deletions
app.js
0 → 100644
1 | +const express = require('express'); | ||
2 | +const app = express(); | ||
3 | + | ||
4 | +app.use(express.urlencoded({ extended: false })); | ||
5 | +app.use(express.json()); | ||
6 | + | ||
7 | +app.get('/keyboard', (req, res) => { | ||
8 | + const data = {'type': 'text'} | ||
9 | + res.json(data); | ||
10 | +}); | ||
11 | + | ||
12 | +app.listen(3000, () => console.log('node on 3000')); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment