import { SetMetadata } from '@nestjs/common';

/**
 * Public Decorator
 *
 * Marks a route as public, bypassing JWT authentication.
 * Use this for routes that should be accessible without a token.
 *
 * Usage:
 * @Public()
 * @Post('login')
 * login(@Body() dto: LoginDto) {
 *   return this.authService.login(dto.email, dto.password);
 * }
 */
export const Public = () => SetMetadata('isPublic', true);
