Api fixes #75

Merged
KevinMidboe merged 11 commits from api_fixes into master 2018-02-05 14:02:11 +00:00
Showing only changes of commit cefbb5e41c - Show all commits

View File

@@ -13,7 +13,7 @@ function historyController(req, res) {
requestRepository.fetchRequested()
.then((requestedItems) => {
res.send({ success: true, requestedItems });
res.send({ success: true, results: requestedItems, total_results: requestedItems.length });
})
.catch((error) => {
res.status(401).send({ success: false, error: error.message });