Browse Source

refactor: remove unused code

pull/5444/head
Wing-Kam Wong 2 years ago
parent
commit
72a181ec9a
  1. 13
      packages/nocodb-nest/src/controllers/public-datas.controller.ts

13
packages/nocodb-nest/src/controllers/public-datas.controller.ts

@ -8,8 +8,6 @@ import {
UseInterceptors,
} from '@nestjs/common';
import { AnyFilesInterceptor } from '@nestjs/platform-express';
import multer from 'multer';
import { NC_ATTACHMENT_FIELD_SIZE } from '../constants';
import { PublicDatasService } from '../services/public-datas.service';
@Controller()
@ -45,17 +43,6 @@ export class PublicDatasController {
return groupedData;
}
// todo: multer
// router.post(
// '/api/v1/db/public/shared-view/:sharedViewUuid/rows',
// multer({
// storage: multer.diskStorage({}),
// limits: {
// fieldSize: NC_ATTACHMENT_FIELD_SIZE,
// },
// }).any(),
// catchError(dataInsert)
// );
@Post('/api/v1/db/public/shared-view/:sharedViewUuid/rows')
@HttpCode(200)
@UseInterceptors(AnyFilesInterceptor())

Loading…
Cancel
Save