Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import { Controller, Post, Body, Req } from '@nestjs/common'; import { ProjectCollaborationService } from '../services/project-collaboration.service'; import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; @Controller('api/v1/collaboration') @ApiTags('Collaboration') export class CollaborationController { constructor(private readonly collabService: ProjectCollaborationService) {} @Post('deliverable') @ApiOperation({ summary: 'Create deliverable operation' }) @ApiResponse({ status: 201, description: 'Operation successful' }) async createDeliverable(@Req() req: any, @Body() data: any): Promise<any> { const tenantId = req.user?.tenantId || 'dummy-tenant-id'; return this.collabService.createDeliverable(tenantId, data); } } |