Ejercicio-gesti-n-de-rutas const express = require('express')const app = express()const port = 3000 让bodyParser = require('body-parser'); app.use(bodyParser.json()); 令积= []; app.route('/ products').get(((req,res)=> {res.json(products);}).post((req,res)=> {const newProduct = {... req.body ,id:pro