refactor(categories): change controller route from 'api/categories' to 'categories'

fix(products): update category fetch logic to ensure data is an array
refactor(products): simplify GET handler by integrating authentication directly
This commit is contained in:
Nils-Johan Gynther
2026-04-17 22:13:16 +02:00
parent 543059f405
commit adcfa97c06
3 changed files with 15 additions and 11 deletions
@@ -2,7 +2,7 @@ import { Controller, Get } from '@nestjs/common';
import { CategoriesService } from './categories.service';
import { Public } from '../auth/decorators/public.decorator';
@Controller('api/categories')
@Controller('categories')
export class CategoriesController {
constructor(private readonly categoriesService: CategoriesService) {}