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?