File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/clap/server/adapter/inbound/web/admin Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1111import io .swagger .v3 .oas .annotations .tags .Tag ;
1212import lombok .RequiredArgsConstructor ;
1313import org .springframework .http .ResponseEntity ;
14+ import org .springframework .security .access .annotation .Secured ;
1415import org .springframework .web .bind .annotation .GetMapping ;
1516import org .springframework .web .bind .annotation .RequestMapping ;
1617
@@ -27,18 +28,21 @@ public class FindCategoryController {
2728
2829 @ Operation (summary = "모든 카테고리 조회" )
2930 @ GetMapping ("/category" )
31+ @ Secured ({"ROLE_USER" , "ROLE_MANAGER" , "ROLE_ADMIN" })
3032 public ResponseEntity <List <FindAllCategoryResponse >> findAllCategory () {
3133 return ResponseEntity .ok (findAllCategoryUsecase .findAllCategory ());
3234 }
3335
3436 @ Operation (summary = "1차 카테고리 조회" )
3537 @ GetMapping ("/main-category" )
38+ @ Secured ({"ROLE_USER" , "ROLE_MANAGER" , "ROLE_ADMIN" })
3639 public ResponseEntity <List <FindMainCategoryResponse >> findMainCategory () {
3740 return ResponseEntity .ok (findmainCategoryUsecase .findMainCategory ());
3841 }
3942
4043 @ Operation (summary = "2차 카테고리 조회" )
4144 @ GetMapping ("/sub-category" )
45+ @ Secured ({"ROLE_USER" , "ROLE_MANAGER" , "ROLE_ADMIN" })
4246 public ResponseEntity <List <FindSubCategoryResponse >> findSubCategory () {
4347 return ResponseEntity .ok (findsubCategoryUsecase .findSubCategory ());
4448 }
You can’t perform that action at this time.
0 commit comments