protcol data commands
This commit is contained in:
parent
475a13ce36
commit
b9b258a1f6
16 changed files with 335 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
import express, { Request, Response } from "express";
|
||||
import {
|
||||
createProtocol,
|
||||
getAllProtocols,
|
||||
getProtocolAgendaById,
|
||||
getProtocolById,
|
||||
|
@ -39,23 +40,27 @@ router.get("/:protocolId/votings", async (req: Request, res: Response) => {
|
|||
await getProtocolVotingsById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:id/synchronize", async (req: Request, res: Response) => {
|
||||
router.post("/", async (req: Request, res: Response) => {
|
||||
await createProtocol(req, res);
|
||||
});
|
||||
|
||||
router.put("/:id/synchronize", async (req: Request, res: Response) => {
|
||||
await synchronizeProtocolById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/synchronize/agenda", async (req: Request, res: Response) => {
|
||||
router.put("/:protocolId/synchronize/agenda", async (req: Request, res: Response) => {
|
||||
await synchronizeProtocolAgendaById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/synchronize/decisions", async (req: Request, res: Response) => {
|
||||
router.put("/:protocolId/synchronize/decisions", async (req: Request, res: Response) => {
|
||||
await synchronizeProtocolDecisonsById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/synchronize/presence", async (req: Request, res: Response) => {
|
||||
router.put("/:protocolId/synchronize/presence", async (req: Request, res: Response) => {
|
||||
await synchronizeProtocolPrecenseById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:protocolId/synchronize/votings", async (req: Request, res: Response) => {
|
||||
router.put("/:protocolId/synchronize/votings", async (req: Request, res: Response) => {
|
||||
await synchronizeProtocolVotingsById(req, res);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue