import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';

@ApiTags('root')
@Controller()
export class AppController {
  @Get()
  @ApiOperation({ summary: 'Welcome to the API | الترحيب بالـ API' })
  @ApiResponse({ status: 200, description: 'API is running | الـ API يعمل بنجاح' })
  getHello() {
    return {
      message: 'Welcome to Ads Analytics SaaS API',
      version: '1.0',
      docs: '/api/docs',
      status: 'active',
    };
  }
}
