import { SetMetadata } from '@nestjs/common'; export const IS_PUBLIC_KEY = 'isPublic'; /** * Set a flag on the route handler to indicate that the route is public. * @returns CustomDecorator */ export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);