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 Practice ExpressJS: Middleware!
You have completed Practice ExpressJS: Middleware!
Preview
This video introduces our middleware challenge.
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
[MUSIC]
0:00
Hello, everyone.
0:00
Travis here with another practice session.
0:01
Today we'll delve into the world
of middleware and ExpressJS.
0:04
Middleware are simply functions that
get run in between the user sending
0:08
a request and
the server sending back a response.
0:12
They have access to the request and
response objects, meaning we can
0:15
modify them to fit our needs, and they can
either end the request response cycle or
0:19
call the next middleware
function in the stack.
0:24
In this exercise,
we'll create a middleware function to
0:27
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