Skip to content

Commit

Permalink
Merge pull request #3903 from leburgeon/patch-6
Browse files Browse the repository at this point in the history
Update part9c.md
  • Loading branch information
mluukkai authored Dec 7, 2024
2 parents d170e86 + 47bc9d9 commit 7a234c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/9/en/part9c.md
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ router.post('/', (req, res) => { // highlight-line
Instead of calling the request body parsing method explicitly in the route handler, the validation of the input could also be done in a middleware function.
We have also add the type definitions to the route handler parameters, and shall use types also in the middleware function _newDiaryParser_:
We have also added the type definitions to the route handler parameters, and shall also use types in the middleware function _newDiaryParser_:
```js
const newDiaryParser = (req: Request, _res: Response, next: NextFunction) => {
Expand Down

0 comments on commit 7a234c8

Please sign in to comment.