Browse Source

feat(nocodb): add commentUpdate PATCH API

pull/5341/head
Wing-Kam Wong 2 years ago
parent
commit
5961de6400
  1. 14
      packages/nocodb/src/lib/controllers/audit.ctl.ts

14
packages/nocodb/src/lib/controllers/audit.ctl.ts

@ -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) {
res.json(
new PagedResponseImpl(
@ -66,6 +75,11 @@ router.post(
ncMetaAclMw(commentRow, 'commentRow')
);
router.patch(
'/api/v1/db/meta/audits/:auditId/comment',
ncMetaAclMw(commentUpdate, 'commentUpdate')
);
router.post(
'/api/v1/db/meta/audits/rows/:rowId/update',
ncMetaAclMw(auditRowUpdate, 'auditRowUpdate')

Loading…
Cancel
Save