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 20 21 22 23 24 | import { Controller, Get, Req, UseGuards } from '@nestjs/common'; import { ResourcePlanningService } from '../../../domains/projects/services/resource-planning.service'; import { JwtAuthGuard } from '../../../platform/auth/jwt-auth.guard'; import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; @Controller('api/v1/mobile/manager/projects') @ApiTags('MobileProjectsManager') @UseGuards(JwtAuthGuard) export class ProjectsManagerMobileController { constructor(private readonly resourceService: ResourcePlanningService) {} @Get('team-workloads') @ApiOperation({ summary: 'Get team resource allocation workloads list for mobile managers', }) @ApiResponse({ status: 200, description: 'List of allocations' }) async getTeamWorkloads(@Req() req: any): Promise<any> { const tenantId = req.user?.tenantId || req.headers['x-tenant-id'] || 'SYSTEM'; // Simplified mobile workloads overview return { data: 'workloads', tenantId }; } } |