forked from apxtri/apxtri
testapi
This commit is contained in:
parent
52fcf0d9aa
commit
16a93f2d33
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user