Skip to content

Commit

Permalink
Add commented out CRF code to Formio 2023 API route file (just prepar…
Browse files Browse the repository at this point in the history
…ing for the future when the 2023 CRF is developed)
  • Loading branch information
courtneymyers committed May 17, 2024
1 parent 6907d12 commit f04fcd4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions app/server/app/routes/formio2023.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
const express = require("express");
// ---
const {
formioExampleMongoId,
formioExampleRebateId,
formioNoUserAccess,
} = require("../config/formio");
const {
ensureAuthenticated,
storeBapComboKeys,
Expand All @@ -25,6 +20,11 @@ const {
updatePRFSubmission,
deletePRFSubmission,
//
// fetchCRFSubmissions,
// createCRFSubmission,
// fetchCRFSubmission,
// updateCRFSubmission,
//
fetchChangeRequests,
fetchChangeRequestSchema,
createChangeRequest,
Expand Down Expand Up @@ -111,15 +111,23 @@ router.post("/delete-prf-submission", storeBapComboKeys, (req, res) => {

// --- get user's 2023 CRF submissions from Formio
router.get("/crf-submissions", storeBapComboKeys, (req, res) => {
// TODO
res.json([]);
res.json([]); // TODO: replace with `fetchCRFSubmissions({ rebateYear, req, res })` when CRF is ready
});

// --- post a new 2023 CRF submission to Formio
// router.post("/crf-submission", storeBapComboKeys, (req, res) => {
// createCRFSubmission({ rebateYear, req, res });
// });

// --- get an existing 2023 CRF's schema and submission data from Formio
// router.get("/crf-submission/:rebateId", storeBapComboKeys, async (req, res) => {
// fetchCRFSubmission({ rebateYear, req, res });
// });

// --- post an update to an existing draft 2023 CRF submission to Formio
// router.post("/crf-submission/:rebateId", storeBapComboKeys, (req, res) => {
// updateCRFSubmission({ rebateYear, req, res });
// });

// --- get user's 2023 Change Request form submissions from Formio
router.get("/changes", storeBapComboKeys, (req, res) => {
Expand Down

0 comments on commit f04fcd4

Please sign in to comment.