Skip to content

Commit

Permalink
refactor: remove unnecessary PageableDefault import in ArticleControl…
Browse files Browse the repository at this point in the history
…ler (#22)
  • Loading branch information
doxxx93 authored Aug 6, 2023
1 parent 248291a commit 8a73829
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.doxxx.backend.util.SecurityUtil;
import jakarta.validation.Valid;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

Expand All @@ -25,7 +24,7 @@ public ResponseEntity<CreateArticleResponse> create(@RequestBody @Valid CreateAr
}

@GetMapping("")
public ResponseEntity<GetArticleListResponse> list(@PageableDefault Pageable pageable) {
public ResponseEntity<GetArticleListResponse> list(Pageable pageable) {
return ResponseEntity.ok(articleService.list(pageable));
}

Expand Down

0 comments on commit 8a73829

Please sign in to comment.