Browse Source

refactor: path correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5901/head
Pranav C 1 year ago
parent
commit
e2ced4212d
  1. 8
      packages/nocodb/src/controllers/data-table.controller.ts

8
packages/nocodb/src/controllers/data-table.controller.ts

@ -85,13 +85,14 @@ export class DataTableController {
});
}
@Patch(['/api/v1/base/tables/:modelId/rows'])
@Patch(['/api/v1/base/:projectId/tables/:modelId'])
@Acl('dataUpdate')
async dataUpdate(
@Request() req,
@Param('modelId') modelId: string,
@Query('viewId') viewId: string,
@Param('rowId') rowId: string,
@Param('projectId') projectId: string,
) {
return await this.dataTableService.dataUpdate({
modelId: modelId,
@ -99,16 +100,18 @@ export class DataTableController {
cookie: req,
viewId,
// rowId: rowId,
projectId,
});
}
@Delete(['/api/v1/base/tables/:modelId/rows'])
@Delete(['/api/v1/base/:projectId/tables/:modelId'])
@Acl('dataDelete')
async dataDelete(
@Request() req,
@Param('modelId') modelId: string,
@Query('viewId') viewId: string,
@Param('rowId') rowId: string,
@Param('projectId') projectId: string,
) {
return await this.dataTableService.dataDelete({
modelId: modelId,
@ -116,6 +119,7 @@ export class DataTableController {
viewId,
body: req.body,
// rowId: rowId,
projectId,
});
}

Loading…
Cancel
Save