All files / auth auth-only.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_AUTH_ONLY_KEY = 'isAuthOnly';
 
// Rute care cer user autentificat dar NU cer un tenant activ (bootstrap:
// GET /v1/me, POST /v1/tenants, GET /v1/tenants). Restul rutelor raman
// deny-by-default pe tenant prin SessionGuard + TenantGuard.
export const AuthOnly = () => SetMetadata(IS_AUTH_ONLY_KEY, true);