mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
add template to json store
This commit is contained in:
@@ -33,6 +33,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const storeData = Object.assign({}, options, {
|
||||
id,
|
||||
created: new Date().toISOString(),
|
||||
template: templateName,
|
||||
})
|
||||
await store.add(storeData)
|
||||
res.status(200).json({ id: id })
|
||||
|
||||
Reference in New Issue
Block a user