Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public ResponseEntity<RsData<TodoResponseDto>> updateTodo(
}

// 할 일 완료/미완료 토글
@PutMapping("/{todoId}/complete")
@PutMapping("/{todoId}/toggle")
@Operation(summary = "할 일 완료 상태 토글", description = "할 일의 완료 상태를 변경합니다.")
public ResponseEntity<RsData<TodoResponseDto>> toggleTodoComplete(
@AuthenticationPrincipal CustomUserDetails userDetails,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
public interface TodoRepository extends JpaRepository<Todo, Long> {
List<Todo> findByUserIdAndDate(Long userId, LocalDate date);
List<Todo> findByUserId(Long userId);
Todo findByIdAndUser(Long id, User user);
}
Loading