| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import path from 'path' |
||
| 13 | fse.writeJson(path.join(config.root, req.body.url), JSON.parse(req.body.json), function (err) { |
||
| 14 | if(err) console.log("write-json reference error: ", err) |
||
| 15 | Manager.instance.updateReferences() |
||
| 16 | res.set('Content-Type', 'application/json') |
||
| 17 | res.send(JSON.stringify({success: 1})) |
||
| 18 | }) |
||
| 19 | } |
||
| 21 | export default route |