Addes ping method

This commit is contained in:
2023-11-28 22:55:00 +03:00
parent 318a40b961
commit a76757dba2
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
@ApiTags('App')
@Controller()
export class AppController {
@ApiOperation({ description: 'check site availability' })
@Get('ping')
pingpong() {
return 'pong';
}
}