1
0
forked from apxtri/apxtri
This commit is contained in:
philc 2024-04-13 10:51:51 +02:00
parent 52fcf0d9aa
commit 16a93f2d33

View File

@ -321,7 +321,7 @@ router.get(
const objectpath = `../../${req.params.tribe}/objects/${req.params.objectname}/itm/${req.params.primaryindex}.json`;
if (fs.existsSync(objectpath)) {
res.status(200).json({status:200,ref:"Odmdb",msg:"itmfound", data:{itm: fs.readJsonSync(objectpath) }});
res.status(200).json({status:200,ref:"Odmdb",msg:"itmfound", data:fs.readJsonSync(objectpath) });
} else {
res.status(404).json({
status:404,