The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

431450 (10) [Avatar] Offline
#1
First I want to thank for a book. You have done a great job, sir.
I'm still reading in chapter 7 and I found that the source code did not worked as expect for sometimes.

Like in Listing 7.11, the source code only work if I separate the 'GET' and 'PUT' method into 2 lines like this

[...]

router.route('/leds/:id').get(...

router.route('/leds/:id').put(...

[...]

Is that right or did I do something wrong?