Spaces:
Running
Running
Update server.js
Browse files
server.js
CHANGED
@@ -4,7 +4,7 @@ const bodyParser = require('body-parser');
|
|
4 |
const app = express();
|
5 |
const port = 3000;
|
6 |
|
7 |
-
app.use(
|
8 |
|
9 |
app.get('/', (req, res) => {
|
10 |
res.send('Сервер работает!');
|
|
|
4 |
const app = express();
|
5 |
const port = 3000;
|
6 |
|
7 |
+
app.use(express.json());
|
8 |
|
9 |
app.get('/', (req, res) => {
|
10 |
res.send('Сервер работает!');
|