JKL

Update_server

Showing 1 changed file with 12 additions and 0 deletions
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