Skip to content

Commit d415a5f

Browse files
committed
set url api
1 parent e4d80ff commit d415a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/products-controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.getProductsByCaterory = async (req, res, next) => {
4444
Products: results.map(prods => {
4545
return {
4646
cd_prod: prods.cd_prod,
47-
img_prod: prods.img_prod,
47+
img_prod: process.env.URL_API + prods.img_prod,
4848
nm_prod: prods.nm_prod,
4949
price_prod: prods.price_prod,
5050
qntd_prod: prods.qntd_prod,

0 commit comments

Comments
 (0)