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 authGuard = require('./../../auth/authGuardMiddleware');
router.post('/getClaims', authGuard, (req, res) => {
rest
.postResource(
process.env.END_POINT_BASE_URI +
process.env.AWAITING_PROCESSING_CLAIMS,
req.body
)
.then(data => {
res.status(data.response.statusCode).json(data.responseBody);
});
});
router.post('/process', (req, res) => {
rest
.postResource(
process.env.END_POINT_BASE_URI +
process.env.AWAITING_PROCESSING_PROCESS_CLAIMS,
JSON.stringify(req.body)
)
.then(data => {
res.status(data.response.statusCode).json(data.responseBody);
});
});
router.post('/processClaim', authGuard, (req, res) => {
rest
.postResource(
process.env.END_POINT_BASE_URI +
process.env.AWAITING_PROCESSING_PROCESS_CLAIM,
req.body.body
)
.then(data => {
res.status(data.response.statusCode).json(data.responseBody);
});
});
module.exports = router;