mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
62849: intermediate commit, fixed issue with retrieving relationship type id
This commit is contained in:
@@ -117,7 +117,7 @@ export function createMockApi() {
|
||||
const id = req.params.item_id;
|
||||
try {
|
||||
req.item_id = id;
|
||||
req.item = ITEMS.items.find((item) => {
|
||||
req.itemRD$ = ITEMS.items.find((item) => {
|
||||
return item.id === id;
|
||||
});
|
||||
next();
|
||||
@@ -127,7 +127,7 @@ export function createMockApi() {
|
||||
});
|
||||
|
||||
router.route('/items/:item_id').get((req, res) => {
|
||||
res.json(toHALResponse(req, req.item));
|
||||
res.json(toHALResponse(req, req.itemRD$));
|
||||
});
|
||||
|
||||
router.route('/bundles').get((req, res) => {
|
||||
|
Reference in New Issue
Block a user