Skip to content

Commit 650ce1f

Browse files
committed
Angular Security course
1 parent f45c8f1 commit 650ce1f

File tree

3 files changed

+20
-36
lines changed

3 files changed

+20
-36
lines changed

package-lock.json

Lines changed: 16 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@angular/router": "^4.0.0",
2626
"@types/express": "^4.0.36",
2727
"@types/lodash": "^4.14.70",
28+
"body-parser": "^1.17.2",
2829
"command-line-args": "^4.0.6",
2930
"core-js": "^2.4.1",
3031
"nodemon": "^1.11.0",

server/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import * as fs from 'fs';
66
import * as https from 'https';
77
import {readAllLessons} from "./read-all-lessons.route";
88

9+
const bodyParser = require('body-parser');
910

1011
const app: Application = express();
1112

13+
app.use(bodyParser.json());
14+
1215
const commandLineArgs = require('command-line-args');
1316

1417
const optionDefinitions = [

0 commit comments

Comments
 (0)