diff --git a/src/main/java/com/example/daemawiki/domain/file/api/FileController.java b/src/main/java/com/example/daemawiki/domain/file/api/FileController.java index df29df8a..1ec7058e 100644 --- a/src/main/java/com/example/daemawiki/domain/file/api/FileController.java +++ b/src/main/java/com/example/daemawiki/domain/file/api/FileController.java @@ -48,4 +48,9 @@ public Flux getFileByName(@NotBlank @RequestParam("name") String name) { return getFile.getFileByName(name); } + @GetMapping("/list") + public Flux getAll() { + return getFile.getAll(); + } + } diff --git a/src/main/java/com/example/daemawiki/domain/file/component/service/GetFile.java b/src/main/java/com/example/daemawiki/domain/file/component/service/GetFile.java index faca8f54..11d623f9 100644 --- a/src/main/java/com/example/daemawiki/domain/file/component/service/GetFile.java +++ b/src/main/java/com/example/daemawiki/domain/file/component/service/GetFile.java @@ -26,4 +26,8 @@ public Flux getFileByName(String fileName) { return fileRepository.findByFileNameContaining(fileName); } + public Flux getAll() { + return fileRepository.findAll(); + } + }