You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Max, how are you?
Very nice work! Thank you for sharing!
Well, i have a doubt.
It's about the commented code in the "GET" route of the product controller.
node-restful-api-tutorial / api / controllers / products.js (lines: 24 ~ 30) File in this repo
As my English is somewhat limited, I did not understand everything you explained about while writing this part of the code.
What is the best option? Uncomment or delete commented lines?
The text was updated successfully, but these errors were encountered:
Max point was there that the return array it will be empty and it's not considered as an error. So, there is not any need to handle these kind of situation and we can leave it commented(demo how we can handle just in case) or delete.
Hey Max, how are you?
Very nice work! Thank you for sharing!
Well, i have a doubt.
It's about the commented code in the "GET" route of the product controller.
As my English is somewhat limited, I did not understand everything you explained about while writing this part of the code.
What is the best option? Uncomment or delete commented lines?
The text was updated successfully, but these errors were encountered: