Add json output support

This commit is contained in:
lowlighter
2021-03-11 09:17:31 +01:00
parent 86a6fa9090
commit a2215a0c52
6 changed files with 22 additions and 6 deletions

View File

@@ -189,7 +189,7 @@
graphql, rest, plugins, conf,
die:q["plugins.errors.fatal"] ?? false,
verify:q.verify ?? false,
convert:["jpeg", "png"].includes(q["config.output"]) ? q["config.output"] : null,
convert:["jpeg", "png", "json"].includes(q["config.output"]) ? q["config.output"] : null,
}, {Plugins, Templates})
//Cache
if ((!debug)&&(cached))