@Controller('request')
export class HOController {
constructor() {}
@SkipAuth()
@All('/')
@UseGuards(ApiKeyGuard)
async index(@Request() req, @Res() res) {
console.log('--- REQUEST RECEIVED ---');
await new Promise((res) => setTimeout(res, 5000));
console.log('TIMEOUT END');
res.end();
}
}