Spaces:
Sleeping
Sleeping
Download src/modules/webhook/webhooks-list.controller.ts from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/webhook/webhooks-list.controller.ts
- Command line
-
hf download hf://spaces/jinksQspider/openWa/src/modules/webhook/webhooks-list.controller.ts
-
curl -L -o webhooks-list.controller.ts https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/webhook/webhooks-list.controller.ts
623 Bytes
| import { Controller, Get } from '@nestjs/common'; | |
| import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; | |
| import { WebhookService } from './webhook.service'; | |
| import { Webhook } from './entities/webhook.entity'; | |
| ('webhooks') | |
| ('webhooks') | |
| export class WebhooksListController { | |
| constructor(private readonly webhookService: WebhookService) {} | |
| () | |
| ({ summary: 'List all webhooks across all sessions' }) | |
| ({ | |
| status: 200, | |
| description: 'List of all webhooks', | |
| }) | |
| async findAll(): Promise<Webhook[]> { | |
| return this.webhookService.findAll(); | |
| } | |
| } | |