Skip to content

Commit

Permalink
Merge pull request #484 from USEPA/feature/fix-nces-api-routes
Browse files Browse the repository at this point in the history
Feature/fix nces api routes
  • Loading branch information
courtneymyers authored Sep 9, 2024
2 parents a916cf1 + ad959f0 commit 92c3577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/server/app/routes/formio2023.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const router = express.Router();
router.use(ensureAuthenticated);

// --- search 2023 NCES data with the provided NCES ID and return a match
router.get("/nces/:searchText", (req, res) => {
router.get("/nces/:searchText?", (req, res) => {
searchNcesData({ rebateYear, req, res });
});

Expand Down
2 changes: 1 addition & 1 deletion app/server/app/routes/formio2024.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const router = express.Router();
router.use(ensureAuthenticated);

// --- search 2024 NCES data with the provided NCES ID and return a match
router.get("/nces/:searchText", (req, res) => {
router.get("/nces/:searchText?", (req, res) => {
searchNcesData({ rebateYear, req, res });
});

Expand Down

0 comments on commit 92c3577

Please sign in to comment.