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 19 | import { Controller, Get, Req } from '@nestjs/common'; import { ResourcePlanningService } from '../../domains/projects/services/resource-planning.service'; import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; @Controller('mobile/v1/manager/projects') @ApiTags('ProjectsManagerMobile') export class ProjectsManagerMobileController { constructor(private readonly resourceService: ResourcePlanningService) {} @Get('team-workloads') @ApiOperation({ summary: 'Get team workloads operation' }) @ApiResponse({ status: 200, description: 'Operation successful' }) async getTeamWorkloads(@Req() req: any): Promise<any> { const tenantId = req.user?.tenantId || 'dummy-tenant-id'; // Simplified demo return { data: 'workloads' }; } } |