We want to be able to display a product detail by its ID
We want for now just to console log the product data
Tasks
Create the getProductById controller function.
That function get the request parameter called productId , and base of that call the static function findById on the Product class.
We want to be able to display a product detail by its ID
We want for now just to console log the product data
Tasks
Create the getProductById controller function.
That function get the request parameter called productId , and base of that call the static function findById on the Product class.