Spaces:
Sleeping
Sleeping
File size: 623 Bytes
525d39f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import { Controller, Get } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { WebhookService } from './webhook.service';
import { Webhook } from './entities/webhook.entity';
@ApiTags('webhooks')
@Controller('webhooks')
export class WebhooksListController {
constructor(private readonly webhookService: WebhookService) {}
@Get()
@ApiOperation({ summary: 'List all webhooks across all sessions' })
@ApiResponse({
status: 200,
description: 'List of all webhooks',
})
async findAll(): Promise<Webhook[]> {
return this.webhookService.findAll();
}
}
|