All right. 1
So time for challenge 16. Make sure that you've watched a class lesson on Express routing parameters because 2
this challenge is all about putting it into practice. To start off this challenge 3
I want you to head over to your console and you're going to type the letters 'rs' while your nodemon 4
server is running. 5
What this does is that it will force nodemon to restart your server. 6
And in terms of our website that means it will get rid of any previous blog post that we had because 7
it will rerun this entire page and it will set our posts array back to empty. 8
So the challenge is can you change the code inside Atom such that we head over to localhost:3000 9
/posts/ anything you type in here, let's say testing right.? 10
Then when I hit enter it should do nothing on our page but when you head over to our terminal it should 11
print whatever it is that comes after 12
/post/ right? 13
So this last part, whatever it is I write in here, when I hit enter it should get logged in our console. 14
And this requires you to apply what you learned in the last lesson about route parameters and using 15
Express JS to achieve this. 16
So pause the video and complete the challenge 17
now. All right so there's only one hint for this challenge and that is remember that using Express if 18
you have a read of the documentation, you can see that whatever parameter you have in here you can access 19
it using request.params and then dot the name that you've put over here 20
right? So whatever it is, it has to be spelt exactly the same. And hopefully this is enough of a hint for 21
you to be able to reach the answer yourself.