[core] swagger ping
This commit is contained in:
1 parent
23dd1c2726
commit
08c244334b
1 file changed
+4
-1
@@ -7,7 +7,10 @@ import { PingResponse } from '@waha/structures/ping.dto';
|
||||
@ApiTags('🔍 Observability')
|
||||
export class PingController {
|
||||
@Get()
|
||||
@ApiOperation({ summary: 'Ping the server, perform no operations.' })
|
||||
@ApiOperation({
|
||||
summary: 'Ping the server',
|
||||
description: 'Check if the server is alive and responding to requests.',
|
||||
})
|
||||
ping(): PingResponse {
|
||||
return { message: 'pong' };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user