|
|
@ -30,6 +30,15 @@ export async function commentList(req: Request<any, any, any>, res) { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export async function commentUpdate(req: Request<any, any>, res) { |
|
|
|
|
|
|
|
res.json( |
|
|
|
|
|
|
|
await auditService.commentUpdate({ |
|
|
|
|
|
|
|
auditId: req.params.auditId, |
|
|
|
|
|
|
|
body: req.body, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function auditList(req: Request, res: Response) { |
|
|
|
export async function auditList(req: Request, res: Response) { |
|
|
|
res.json( |
|
|
|
res.json( |
|
|
|
new PagedResponseImpl( |
|
|
|
new PagedResponseImpl( |
|
|
@ -66,6 +75,11 @@ router.post( |
|
|
|
ncMetaAclMw(commentRow, 'commentRow') |
|
|
|
ncMetaAclMw(commentRow, 'commentRow') |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
router.patch( |
|
|
|
|
|
|
|
'/api/v1/db/meta/audits/:auditId/comment', |
|
|
|
|
|
|
|
ncMetaAclMw(commentUpdate, 'commentUpdate') |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
router.post( |
|
|
|
router.post( |
|
|
|
'/api/v1/db/meta/audits/rows/:rowId/update', |
|
|
|
'/api/v1/db/meta/audits/rows/:rowId/update', |
|
|
|
ncMetaAclMw(auditRowUpdate, 'auditRowUpdate') |
|
|
|
ncMetaAclMw(auditRowUpdate, 'auditRowUpdate') |
|
|
|