diff --git a/packages/nocodb-nest/src/modules/public-datas-export/public-datas-export.controller.ts b/packages/nocodb-nest/src/modules/public-datas-export/public-datas-export.controller.ts index cc64d102a4..70be95d8d0 100644 --- a/packages/nocodb-nest/src/modules/public-datas-export/public-datas-export.controller.ts +++ b/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;