From 16a93f2d3339d76fdf273c60cd6f542c866fe79d Mon Sep 17 00:00:00 2001 From: philc Date: Sat, 13 Apr 2024 10:51:51 +0200 Subject: [PATCH] testapi --- routes/odmdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/odmdb.js b/routes/odmdb.js index ffe4e41..1691289 100644 --- a/routes/odmdb.js +++ b/routes/odmdb.js @@ -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,