import { Controller, Get } from '@nestjs/common';
  import { Public } from '../../common/decorators/public.decorator';

  @Controller('health')
  export class HealthController {
    @Public()
    @Get()
    check() {
      return {
        status: 'ok',
        service: 'cooperative-api',
        timestamp: new Date().toISOString(),
        version: '0.1.0',
      };
    }

    @Public()
    @Get('healthz')
    liveness() {
      return { status: 'ok' };
    }
  }
  