Skip to content

Commit

Permalink
Merge pull request #390 from USEPA/feature/add-2023-prf-status-endpoint
Browse files Browse the repository at this point in the history
Feature/add 2023 prf status endpoint
  • Loading branch information
courtneymyers authored Feb 28, 2024
2 parents fa5ff82 + caa4146 commit b94f3f3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/server/app/routes/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,30 @@ router.get("/formio/2023/frf", (req, res) => {
});
});

router.get("/formio/2023/prf", (req, res) => {
axiosFormio(req)
.get(formUrl["2023"].prf)
.then((axiosRes) => axiosRes.data)
.then((schema) => {
return res.json({ status: verifySchema(schema) });
})
.catch((error) => {
// NOTE: error is logged in axiosFormio response interceptor
return res.json({ status: false });
});
});

// router.get("/formio/2023/crf", (req, res) => {
// axiosFormio(req)
// .get(formUrl["2023"].crf)
// .then((axiosRes) => axiosRes.data)
// .then((schema) => {
// return res.json({ status: verifySchema(schema) });
// })
// .catch((error) => {
// // NOTE: error is logged in axiosFormio response interceptor
// return res.json({ status: false });
// });
// });

module.exports = router;

0 comments on commit b94f3f3

Please sign in to comment.