diff --git a/src/main/java/org/gachon/checkmate/domain/post/controller/PostController.java b/src/main/java/org/gachon/checkmate/domain/post/controller/PostController.java index cc504d9..148816f 100644 --- a/src/main/java/org/gachon/checkmate/domain/post/controller/PostController.java +++ b/src/main/java/org/gachon/checkmate/domain/post/controller/PostController.java @@ -23,12 +23,12 @@ public class PostController { private final PostService postService; @GetMapping - public ResponseEntity> getAllPosts(// @UserId final Long userId, + public ResponseEntity> getAllPosts(@UserId final Long userId, @RequestParam(required = false) final String key, @RequestParam final String type, @RequestParam(required = false) final String gender, final Pageable pageable) { - final PostSearchResponseDto responseDto = postService.getAllPosts(1L, key, type, gender, pageable); + final PostSearchResponseDto responseDto = postService.getAllPosts(userId, key, type, gender, pageable); return SuccessResponse.ok(responseDto); } diff --git a/src/main/java/org/gachon/checkmate/global/config/auth/SecurityConfig.java b/src/main/java/org/gachon/checkmate/global/config/auth/SecurityConfig.java index d1130f6..4e69fe5 100644 --- a/src/main/java/org/gachon/checkmate/global/config/auth/SecurityConfig.java +++ b/src/main/java/org/gachon/checkmate/global/config/auth/SecurityConfig.java @@ -35,9 +35,7 @@ public class SecurityConfig { "api/member/reissue", "api/department", "/ws/*", - "/ws/**", - "/*", - "/**" + "/ws/**" }; @Bean