mjml4 support moved to a separate package
support for file handling in grapesjs
This commit is contained in:
parent
9f467762c0
commit
b089993360
15 changed files with 136 additions and 10242 deletions
|
@ -10,6 +10,11 @@ router.postAsync('/files-table/:type/:subType/:entityId', passport.loggedIn, asy
|
|||
return res.json(await files.listDTAjax(req.context, req.params.type, req.params.subType, castToInteger(req.params.entityId), req.body));
|
||||
});
|
||||
|
||||
router.getAsync('/files-list/:type/:subType/:entityId', passport.loggedIn, async (req, res) => {
|
||||
return res.json(await files.list(req.context, req.params.type, req.params.subType, castToInteger(req.params.entityId)));
|
||||
});
|
||||
|
||||
|
||||
router.getAsync('/files/:type/:subType/:fileId', passport.loggedIn, async (req, res) => {
|
||||
const file = await files.getFileById(req.context, req.params.type, req.params.subType, castToInteger(req.params.fileId));
|
||||
res.type(file.mimetype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue