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');
const authGuardMiddleware = require('./../../auth/authGuardMiddleware');

router.post('/', authGuardMiddleware, (req, res) => {
rest.postResource(process.env.END_POINT_BASE_URI + process.env.IN_PROCESS_CLAIMS,req.body)
.then(data => {
res.status(data.response.statusCode).json(data.responseBody);
}).catch(error => console.log('inProcess ', error))
});

router.post('/process', (req, res) => {
rest.postResource(process.env.END_POINT_BASE_URI + process.env.AWAITING_PROCESSING_PROCESS_CLAIMS, req.body)
.then(data => {
res.status(data.response.statusCode).json(data.responseBody);
}).catch(error => console.log('process ', error))
});

module.exports = router;