diff --git a/components/transaction/transactionController.js b/components/transaction/transactionController.js index 60e4986..3220e91 100644 --- a/components/transaction/transactionController.js +++ b/components/transaction/transactionController.js @@ -20,3 +20,12 @@ exports.getUserTransaction = catchAsync(async (req, res, next) => { data: transactions, }) }) + +exports.getBelongingInventory = catchAsync(async (req, res, next) => { + const result = await transactionService.getBelongingInventory(req.params.belongingId) + + res.status(200).json({ + status: 'success', + data: result, + }) +})