Browse Source

fix: map public export apis to correct handlers

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
731cf84c0c
  1. 4
      packages/nocodb-nest/src/modules/public-datas-export/public-datas-export.controller.ts

4
packages/nocodb-nest/src/modules/public-datas-export/public-datas-export.controller.ts

@ -17,7 +17,7 @@ export class PublicDatasExportController {
private readonly publicDatasExportService: PublicDatasExportService,
) {}
@Get('/api/v1/db/public/shared-view/:publicDataUuid/rows/export/csv')
@Get('/api/v1/db/public/shared-view/:publicDataUuid/rows/export/excel')
async exportExcel(
@Request() req,
@Response() res,
@ -69,7 +69,7 @@ export class PublicDatasExportController {
res.end(buf);
}
@Get('/api/v1/db/public/shared-view/:publicDataUuid/rows/export/excel')
@Get('/api/v1/db/public/shared-view/:publicDataUuid/rows/export/csv')
async exportCsv(@Request() req, @Response() res) {
const view = await View.getByUUID(req.params.publicDataUuid);
const fields = req.query.fields;

Loading…
Cancel
Save