|
|
|
@ -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()) |
|
|
|
|