let say I've this route
DELETE products/{id}
DELETE products/{id}/discount
The first example will call destroy
function inside ProductController
but the second example I dont know where to put deleteDiscount
function whether in ProductController
or DiscountController
should I put the second example in ProductController
? or DiscountController
in destroy
function? which is best practice?