2025-01-27 20:44:27 +00:00
|
|
|
import { Controller, Get } from '@nestjs/common';
|
2025-06-20 13:16:42 +00:00
|
|
|
import { ApiTags, ApiOperation } from '@nestjs/swagger';
|
|
|
|
|
import { APP_VERSION } from './version';
|
2025-01-27 20:44:27 +00:00
|
|
|
|
2025-06-20 13:16:42 +00:00
|
|
|
@ApiTags('Main')
|
|
|
|
|
@Controller('v1')
|
2025-01-27 20:44:27 +00:00
|
|
|
export class AppController {
|
2025-06-20 13:16:42 +00:00
|
|
|
@Get('version')
|
|
|
|
|
@ApiOperation({ summary: 'Get App Version' })
|
|
|
|
|
getVersion() {
|
2026-01-05 17:50:27 +00:00
|
|
|
return { version: APP_VERSION };
|
2025-01-27 20:44:27 +00:00
|
|
|
}
|
2025-06-20 13:16:42 +00:00
|
|
|
|
2026-01-05 17:43:23 +00:00
|
|
|
@Get('health')
|
2025-06-20 13:16:42 +00:00
|
|
|
@ApiOperation({ summary: 'Health check' })
|
|
|
|
|
healthCheck() {
|
2026-01-05 18:50:31 +00:00
|
|
|
return { status: ':ok 3 ' };
|
2025-06-20 13:16:42 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-27 20:44:27 +00:00
|
|
|
}
|