Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/fu351/Team-17-
Browse files Browse the repository at this point in the history
  • Loading branch information
fu351 committed Dec 14, 2023
2 parents 6a4d725 + ee378fe commit 60226df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions search.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ router.post('/package/byRegEx', async (req, res) => {
});

router.post('/packages', async (req, res) => {
const packageName = req.body.packageName;
const versionInput = req.body.version;
const packageName = req.body.Name;
console.log(req.body);
const versionInput = req.body.Version;
const offset = req.query.offset || 0; // Get the offset from the query parameters, default to 0

try {
Expand Down

0 comments on commit 60226df

Please sign in to comment.