Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
Play with middleware to see how it works.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
I'll just make some space
above our routes on line 12.
0:00
You'll often pass Middleware is
an anonymous function into the app use
0:02
method.
0:07
We need the request,
response, and next arguments.
0:09
Let's just do a log
statement to the console.
0:17
Then we can call next.
0:26
We'll look more closely at
the next function sin, but for
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up