diff --git a/methods/bindTicketShelving.js b/methods/bindTicketShelving.js index cf3e1f5..d77363d 100644 --- a/methods/bindTicketShelving.js +++ b/methods/bindTicketShelving.js @@ -3,10 +3,11 @@ const router = express.Router(); // eslint-disable-line // const filter = require('../utilities/filter'); const select = require('../db/selectDB'); -router.get('/:collectionShelving', async(req, res) => { +router.get('/:collectionShelving/:collectionFk', async(req, res) => { const collectionShelving = req.params.collectionShelving.split(','); + const collectionFk = req.params.collectionFk; console.log(collectionShelving); - let collectionFk = 273449; + console.log(collectionFk); ticketShelving(collectionShelving, collectionFk); res.json({message: 'SUCCESS'}); });