Thanks, it was successfully on my code. :)
A
Arturo0911
@Arturo0911
0
Reputation
2
Posts
405
Profile views
0
Followers
0
Following
Posts made by Arturo0911
-
Hi, so i have a problem with this. .... when i call the http://localhost:3001/api/report, always it askeme about user and password, even i put the correct credencials but it's ask me again
const express = require('express');
const router = express.Router();
const request = require('request');router.get('/', async(req, res, next) => {
console.log('el cuerpo del filtro: ', req.body);
const data = {
template: { 'shortid': 'rkg6sD1NY8' },
options: {
preview: true
}
};
const options = {
uri: 'http://localhost:3001/api/report',
method: 'POST',
json: data
}
request(options).pipe(res);
//res.send('recibiendo');
});module.exports = router;