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
A solution to the challenge from the last video.
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
Now, I'll go over how I
created the goodbye button.
0:00
To create the button itself,
0:03
I've added a form to the index.pug
file right under the greeting.
0:05
I set its action to /goodbye
which is the new goodbye route.
0:12
The method is post and
in the form I've got one submit button.
0:18
It has the text goodbye.
0:25
In app.js I added a new post route under
the hello post route called goodbye.
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