render protocol by template

This commit is contained in:
Julian Krauser 2024-10-18 15:23:51 +02:00
parent da219eb5f4
commit 58213923e5
8 changed files with 950 additions and 3 deletions

View file

@ -10,6 +10,7 @@ import {
getProtocolDecisonsById,
getProtocolPrecenseById,
getProtocolVotingsById,
printPdf,
synchronizeProtocolAgendaById,
synchronizeProtocolById,
synchronizeProtocolDecisonsById,
@ -59,6 +60,10 @@ router.post("/:protocolId/voting", async (req: Request, res: Response) => {
await createProtocolVotingsById(req, res);
});
router.post("/:protocolId/render", async (req: Request, res: Response) => {
await printPdf(req, res);
});
router.patch("/:id/synchronize", async (req: Request, res: Response) => {
await synchronizeProtocolById(req, res);
});