printout
This commit is contained in:
parent
58213923e5
commit
9da2a98f55
12 changed files with 341 additions and 54 deletions
|
@ -3,14 +3,16 @@ import {
|
|||
createProtocol,
|
||||
createProtocolAgendaById,
|
||||
createProtocolDecisonsById,
|
||||
createProtocolPrintoutById,
|
||||
createProtocolVotingsById,
|
||||
getAllProtocols,
|
||||
getProtocolAgendaById,
|
||||
getProtocolById,
|
||||
getProtocolDecisonsById,
|
||||
getProtocolPrecenseById,
|
||||
getProtocolPrintoutByIdAndPrint,
|
||||
getProtocolPrintoutsById,
|
||||
getProtocolVotingsById,
|
||||
printPdf,
|
||||
synchronizeProtocolAgendaById,
|
||||
synchronizeProtocolById,
|
||||
synchronizeProtocolDecisonsById,
|
||||
|
@ -44,6 +46,14 @@ router.get("/:protocolId/votings", async (req: Request, res: Response) => {
|
|||
await getProtocolVotingsById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/printouts", async (req: Request, res: Response) => {
|
||||
await getProtocolPrintoutsById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/printout/:printoutId", async (req: Request, res: Response) => {
|
||||
await getProtocolPrintoutByIdAndPrint(req, res);
|
||||
});
|
||||
|
||||
router.post("/", async (req: Request, res: Response) => {
|
||||
await createProtocol(req, res);
|
||||
});
|
||||
|
@ -60,8 +70,8 @@ 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.post("/:protocolId/printout", async (req: Request, res: Response) => {
|
||||
await createProtocolPrintoutById(req, res);
|
||||
});
|
||||
|
||||
router.patch("/:id/synchronize", async (req: Request, res: Response) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue