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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user