Add support for fonts

This commit is contained in:
lowlighter
2020-10-25 00:19:57 +02:00
parent cdbb0e5b87
commit a4e15807ad
11 changed files with 116 additions and 48 deletions

View File

@@ -66,8 +66,8 @@
const template = req.query.template || conf.settings.templates.default
if (!(template in Templates))
return res.sendStatus(404)
const {style, image} = conf.templates[template]
res.status(200).json({style, image})
const {style, image, fonts} = conf.templates[template]
res.status(200).json({style, image, fonts})
})
app.get("/action.flush", limiter, async (req, res) => {
const {token, user} = req.query