We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d80ff commit d415a5fCopy full SHA for d415a5f
controllers/products-controller.js
@@ -44,7 +44,7 @@ exports.getProductsByCaterory = async (req, res, next) => {
44
Products: results.map(prods => {
45
return {
46
cd_prod: prods.cd_prod,
47
- img_prod: prods.img_prod,
+ img_prod: process.env.URL_API + prods.img_prod,
48
nm_prod: prods.nm_prod,
49
price_prod: prods.price_prod,
50
qntd_prod: prods.qntd_prod,
0 commit comments