Assist_Design/apps/bff/src/catalog/catalog.controller.ts

16 lines
430 B
TypeScript
Raw Normal View History

2025-08-21 15:24:40 +09:00
import { Controller, Get } from "@nestjs/common";
import { CatalogService } from "./catalog.service";
import { ApiTags, ApiOperation } from "@nestjs/swagger";
2025-08-21 15:24:40 +09:00
@ApiTags("catalog")
@Controller("catalog")
export class CatalogController {
constructor(private catalogService: CatalogService) {}
@Get()
2025-08-21 15:24:40 +09:00
@ApiOperation({ summary: "Get product catalog" })
async getCatalog() {
return this.catalogService.getProducts();
}
}