Skip to content

Commit

Permalink
Update CategoryContoller
Browse files Browse the repository at this point in the history
  • Loading branch information
denomelchenko committed Jul 17, 2024
1 parent 1dd1a77 commit 9a2345b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,5 @@ public CategoryController(CategoryService categoryService) {
public List<CategoryDTO> findAllCategories() {
return categoryService.findAllCategory();
}

@QueryMapping(name = "categoryById")
public CategoryDTO findCategoryById(@Argument @Id String categoryId) {
return categoryService.findCategoryById(categoryId).orElse(null);
}
}

0 comments on commit 9a2345b

Please sign in to comment.