import { SetMetadata } from '@nestjs/common'; // Routes annotated with @Public() skip the global CenterApiKeyGuard // (api-key + node-identity) check. This is metadata-driven on purpose: // the previous string-matching whitelist (path.endsWith(...)) was a // bypass surface. Only the route's own decorator opens it. export const IS_PUBLIC_KEY = 'fabric:isPublic'; export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);