diff --git a/app/server/app/routes/formio2022.js b/app/server/app/routes/formio2022.js index 2316b65c..0504c5cf 100644 --- a/app/server/app/routes/formio2022.js +++ b/app/server/app/routes/formio2022.js @@ -9,6 +9,8 @@ const { uploadS3FileMetadata, downloadS3FileMetadata, // + fetchSubmissionPDF, + // fetchFRFSubmissions, createFRFSubmission, fetchFRFSubmission, @@ -49,6 +51,11 @@ router.post( }, ); +// --- get a PDF of a 2022 form submission from Formio +router.get("/pdf/:formType/:mongoId", fetchBapComboKeys, (req, res) => { + fetchSubmissionPDF({ rebateYear, req, res }); +}); + // --- get user's 2022 FRF submissions from Formio router.get("/frf-submissions", fetchBapComboKeys, (req, res) => { fetchFRFSubmissions({ rebateYear, req, res }); diff --git a/app/server/app/routes/formio2023.js b/app/server/app/routes/formio2023.js index f2500134..06b2e184 100644 --- a/app/server/app/routes/formio2023.js +++ b/app/server/app/routes/formio2023.js @@ -11,6 +11,8 @@ const { uploadS3FileMetadata, downloadS3FileMetadata, // + fetchSubmissionPDF, + // fetchFRFSubmissions, createFRFSubmission, fetchFRFSubmission, @@ -61,6 +63,11 @@ router.post( }, ); +// --- get a PDF of a 2023 form submission from Formio +router.get("/pdf/:formType/:mongoId", fetchBapComboKeys, (req, res) => { + fetchSubmissionPDF({ rebateYear, req, res }); +}); + // --- get user's 2023 FRF submissions from Formio router.get("/frf-submissions", fetchBapComboKeys, (req, res) => { fetchFRFSubmissions({ rebateYear, req, res }); diff --git a/app/server/app/routes/formio2024.js b/app/server/app/routes/formio2024.js index 60a32f76..e61df562 100644 --- a/app/server/app/routes/formio2024.js +++ b/app/server/app/routes/formio2024.js @@ -11,6 +11,8 @@ const { uploadS3FileMetadata, downloadS3FileMetadata, // + fetchSubmissionPDF, + // fetchFRFSubmissions, createFRFSubmission, fetchFRFSubmission, @@ -61,6 +63,11 @@ router.post( }, ); +// --- get a PDF of a 2024 form submission from Formio +router.get("/pdf/:formType/:mongoId", fetchBapComboKeys, (req, res) => { + fetchSubmissionPDF({ rebateYear, req, res }); +}); + // --- get user's 2024 FRF submissions from Formio router.get("/frf-submissions", fetchBapComboKeys, (req, res) => { fetchFRFSubmissions({ rebateYear, req, res });