Rooni commited on
Commit
55f0cda
1 Parent(s): f93af6f

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -4,7 +4,7 @@ const bodyParser = require('body-parser');
4
  const app = express();
5
  const port = 3000;
6
 
7
- app.use(bodyParser.json());
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('Сервер работает!');