Skip to content

Commit

Permalink
Merge pull request #112 from kakao-tech-campus-2nd-step3/weekly
Browse files Browse the repository at this point in the history
master 병합
  • Loading branch information
yooonwodyd authored Nov 14, 2024
2 parents 8879dfc + 1992a67 commit caceb43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/v1/products/**",
"/v1/reviews/**",
"/ws/**",
"/v1/artists/**"
"/v1/artists/**",
"/v1/users/**"
).permitAll()
.anyRequest().authenticated()
).exceptionHandling((exception) -> exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
import com.helpmeCookies.product.entity.Product;
import com.helpmeCookies.user.entity.User;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductLikeRepository extends JpaRepository<Like, Long> {
Optional<Like> findDistinctFirstByUserAndProduct(User user, Product product);

Page<Like> findAllByUser(User user, Pageable pageable);
}

0 comments on commit caceb43

Please sign in to comment.