All files / auth public.decorator.ts

80% Statements 4/5
100% Branches 0/0
0% Functions 0/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 91x   1x         1x  
import { SetMetadata } from '@nestjs/common';
 
export const IS_PUBLIC_KEY = 'isPublic';
 
// Marchez explicit rutele fara sesiune (health checks, webhooks semnate separat).
// Fara acest decorator, TenantGuard respinge implicit orice request -- deny-by-default,
// per blueprint 11.3, in loc sa se bazeze pe fiecare controller nou sa adauge garda manual.
export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);