Skip to content

Commit

Permalink
Merge pull request #521 from USEPA/feature/update-status-api-and-open…
Browse files Browse the repository at this point in the history
…api-docs

Feature/update status api and openapi docs
  • Loading branch information
courtneymyers authored Dec 23, 2024
2 parents 31733b8 + 8cd97a4 commit 4067527
Show file tree
Hide file tree
Showing 2 changed files with 418 additions and 56 deletions.
24 changes: 12 additions & 12 deletions app/server/app/routes/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ router.get("/formio/2024/frf", (req, res) => {
});
});

// router.get("/formio/2024/prf", (req, res) => {
// axiosFormio(req)
// .get(formUrl["2024"].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/2024/prf", (req, res) => {
axiosFormio(req)
.get(formUrl["2024"].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/2024/crf", (req, res) => {
// axiosFormio(req)
Expand Down
Loading

0 comments on commit 4067527

Please sign in to comment.