vendaweb-api/src/app.controller.ts

21 lines
449 B
TypeScript
Raw Normal View History

2025-01-27 20:44:27 +00:00
import { Controller, Get } from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { APP_VERSION } from './version';
2025-01-27 20:44:27 +00:00
@ApiTags('Main')
@Controller('v1')
2025-01-27 20:44:27 +00:00
export class AppController {
@Get('version')
@ApiOperation({ summary: 'Get App Version' })
getVersion() {
return { version: APP_VERSION };
2025-01-27 20:44:27 +00:00
}
@Get('health')
@ApiOperation({ summary: 'Health check' })
healthCheck() {
return { status: ':ok 2 ' };
}
2025-01-27 20:44:27 +00:00
}