Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions 10-post-form/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const app = express();

app.use(favicon(path.join(__dirname, '..', 'public', 'favicon.ico')));

// parse incoming json

// parse urlencoded bodies

app.use(express.static(path.join(__dirname, '..', 'public')));
Expand Down
2 changes: 0 additions & 2 deletions solution/10-post-form/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ const app = express();

app.use(favicon(path.join(__dirname, '..', 'public', 'favicon.ico')));

// parse incoming json
app.use(bodyParser.json());
// parse urlencoded bodies
app.use(bodyParser.urlencoded({ extended: false }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you actually run the code after your changes?

Running this file will result in a ReferenceError because you've removed line 5, where bodyParser is defined, yet still refer to it on line 14.


Expand Down