Skip to content

Commit

Permalink
REFACTOR : 카테고리 조회 인증 필요 적용 취소
Browse files Browse the repository at this point in the history
  • Loading branch information
choidongkuen committed Dec 26, 2023
1 parent 6d9bd4d commit 05adc92
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* - follower : 유저를 팔로우 하는 유저
* - followee : 유저가 팔로우 하는 유저
**/

@Slf4j
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.example.betteriter.fo_domain.follow.repository;

import com.example.betteriter.fo_domain.follow.domain.Follow;
import org.springframework.data.jpa.repository.JpaRepository;

public interface FollowRepository extends JpaRepository<Follow,Long> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
// antMatchers().permitAll() 을 통해 특정 API 요청은
// jwtAuthenticationFilter 에 걸려도 ExceptionTranslationFilter 을 거치지 않는다 x (무시 x -> 일단 인증 필터를 거치긴 함 !!)
.antMatchers("/login/callback/**",
"/auth/**", "/temp/**")
"/auth/**", "/temp/**","/category")
.permitAll()
.antMatchers("/news/**").hasRole("ADMIN")
.anyRequest().authenticated()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.example.betteriter.fo_domain.review.repository;

import com.example.betteriter.fo_domain.follow.domain.Follow;
import com.example.betteriter.fo_domain.follow.repository.FollowRepository;
import com.example.betteriter.fo_domain.review.domain.Review;
import com.example.betteriter.fo_domain.review.domain.ReviewLike;
import com.example.betteriter.fo_domain.review.domain.ReviewScrap;
import com.example.betteriter.fo_domain.user.domain.Follow;
import com.example.betteriter.fo_domain.user.domain.Users;
import com.example.betteriter.fo_domain.user.repository.FollowRepository;
import com.example.betteriter.fo_domain.user.repository.UsersRepository;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit 05adc92

Please sign in to comment.