Zadanie z kodem · Kurs NestJS · Moduł 11: Swagger i OpenAPI

Konfiguracja JWT auth w Swagger

Dodaj dekoratory @ApiBearerAuth i @ApiUnauthorizedResponse do endpointów.

Zadanie

Oznacz endpointy jako chronione JWT za pomocą @ApiBearerAuth('JWT-auth') i @ApiUnauthorizedResponse