import { Controller, Get, UseGuards } from '@nestjs/common'; import { AppService } from './app.service'; import { JwtAuthGuard } from './auth/guard/jwt.guard'; import { MailService } from './mail/mail.service'; @Controller() @UseGuards(JwtAuthGuard) export class AppController { constructor(private readonly appService: AppService, private mailService: MailService) {} @Get() getHello(): string { return this.appService.getHello(); } }