forked from apxtri/apxtri
clean
This commit is contained in:
parent
033232eba1
commit
81917cedaf
@ -59,7 +59,7 @@ router.get("/schema/:tribe/:objectname", checkHeaders, isAuthenticated, (req, re
|
||||
res.status(retschema.status).json(retschema);
|
||||
});
|
||||
/**
|
||||
* @api {get} /adminapi/odmdb/options/:tribe/objects/options/:optionname - Get option list in header language
|
||||
* @api {get} /adminapi/odmdb/options/:tribe/objects/option/:optionname - Get option list in header language
|
||||
* @apiGroup Odmdb
|
||||
* @apiName getOption
|
||||
* @apiDescription Get schema in the requested language if login have accessright. object $ref or $id are replace by the relevant schema, option $ref are replace by enum list of authorised value
|
||||
@ -71,7 +71,7 @@ router.get("/schema/:tribe/:objectname", checkHeaders, isAuthenticated, (req, re
|
||||
* HTTP/1.1 200 OK
|
||||
* {"status":200, "ref":"Odmdb", "msg":"schema", "data":{schema,objectname,lg}
|
||||
*/
|
||||
router.get("/options/:tribe/objects/options/:optionname", checkHeaders, isAuthenticated, (req, res) => {
|
||||
router.get("/options/:tribe/objects/option/:optionname", checkHeaders, isAuthenticated, (req, res) => {
|
||||
const objectPathname=`../../${req.params.tribe}/objects/options/${req.params.optionname}_${req.header.xlang}.json`
|
||||
if (fs.existsSync(objectPathname)){
|
||||
res.status(200).json({status:200,ref:"Odmdb",msg:"optionfind",data:fs.readJsonSync(objectPathname)})
|
||||
|
Loading…
x
Reference in New Issue
Block a user