import { Controller, Get, UseGuards } from "@nestjs/common"; import { CatalogService } from "./catalog.service"; import { ApiTags, ApiOperation, ApiBearerAuth } from "@nestjs/swagger"; import { JwtAuthGuard } from "../auth/guards/jwt-auth.guard"; @ApiTags("catalog") @Controller("catalog") @UseGuards(JwtAuthGuard) @ApiBearerAuth() export class CatalogController { constructor(private catalogService: CatalogService) {} @Get() @ApiOperation({ summary: "Get product catalog (authenticated users only)" }) async getCatalog() { return this.catalogService.getProducts(); } }