diff --git a/src/main/kotlin/controller/api/AudioApiController.kt b/src/main/kotlin/controller/api/AudioApiController.kt index 1918015..fe26b9f 100644 --- a/src/main/kotlin/controller/api/AudioApiController.kt +++ b/src/main/kotlin/controller/api/AudioApiController.kt @@ -32,7 +32,11 @@ ): ResponseEntity = ResponseEntity.ok( audioService.getByKeywords( - audioName, artistName, albumName, tagName, PAGE_LIMIT + audioName?.split("\\s".toRegex())?.toList(), + artistName?.split("\\s".toRegex())?.toList(), + albumName?.split("\\s".toRegex())?.toList(), + tagName?.split("\\s".toRegex())?.toList(), + PAGE_LIMIT ) )