import { Controller, Get } from '@nestjs/common'; import { AllowPublicAccess } from './modules/auth/allow-public-access.decorator'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() @AllowPublicAccess() getHello(): string { return this.appService.getHello(); } }