Spaces:
Runtime error
Runtime error
| import { Controller, Get } from '@nestjs/common'; | |
| import { ApiOperation, ApiSecurity, ApiTags } from '@nestjs/swagger'; | |
| import { PingResponse } from '@waha/structures/ping.dto'; | |
| ('api_key') | |
| ('ping') | |
| ('๐ Observability') | |
| export class PingController { | |
| () | |
| ({ | |
| summary: 'Ping the server', | |
| description: 'Check if the server is alive and responding to requests.', | |
| }) | |
| ping(): PingResponse { | |
| return { message: 'pong' }; | |
| } | |
| } | |