import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getWelcome() {
    return {
      project: 'ERP Starline',
      message: 'NestJS API is running',
      health: '/api/health',
    };
  }

  @Get('health')
  getHealth() {
    return this.appService.getHealth();
  }
}

