Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
const express = require('express');
const router = express.Router();
const rest = require('../../rest/rest');
router.post('/search', (req, res) => {
// console.log('req.body', req.body);
rest
.postResource(
process.env.END_POINT_BASE_URI +
process.env.RFAI_LOOKUP +
`?advSearch=${req.body.searchType}`,
req.body
)
.then(data => {
// console.log(JSON.stringify(data));
res.status(data.response.statusCode).json(data.responseBody);
})
.catch(error => console.log('From Lookup Search', error));
});
module.exports = router;