feat(products): add public access to findAll and findAllTags endpoints

feat(ai): enhance AI admin client with status messages for API key configuration
refactor(api): remove authorization check from products route
This commit is contained in:
Nils-Johan Gynther
2026-04-19 11:42:10 +02:00
parent 045f160655
commit 39b91d8c87
3 changed files with 17 additions and 10 deletions
@@ -13,6 +13,7 @@ import {
Query,
Request,
} from '@nestjs/common';
import { Public } from '../auth/decorators/public.decorator';
import { CreateProductDto } from './dto/create-product.dto';
import { UpdateProductDto } from './dto/update-product.dto';
import { ProductsService } from './products.service';
@@ -46,6 +47,7 @@ export class ProductsController {
private readonly categoriesService: CategoriesService,
) {}
@Public()
@Get()
findAll(
@Query('tag') tag?: string,
@@ -54,6 +56,7 @@ export class ProductsController {
return this.productsService.findAll({ tag, subcategory });
}
@Public()
@Get('tags')
findAllTags() {
return this.productsService.findAllTags();