Skip to content

Commit 2c75a4d

Browse files
author
Anthony Gore
committed
Merge branch 'lecture/175' into lecture/177
# Conflicts: # server.js
2 parents 8263421 + 9001814 commit 2c75a4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ app.get('/', (req, res) => {
4343

4444
app.use(require('body-parser').json());
4545
app.post('/add_event', (req, res) => {
46-
let event = {
46+
events.push({
4747
description: req.body.description,
4848
date: moment(req.body.date)
49-
};
50-
events.push(event);
49+
});
5150
res.sendStatus(200);
5251
});
5352

0 commit comments

Comments
 (0)