Skip to content

Commit df28650

Browse files
Add comment for middleware example 2
1 parent 6b3fc39 commit df28650

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

middleware_example_2.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const arrowFunction = (req, res, next) => {
99

1010
app.use(arrowFunction);
1111

12+
// try http://localhost:3000/users?color=blue
13+
// or http://localhost:3000/books?color=blue
14+
// is there a difference?
1215
const checkColor = () => {
1316
return (req, res, next) => {
1417
if (req.query.color) {

0 commit comments

Comments
 (0)