feat: add manga-matcher endpoint configuration for RapidFuzz client

This commit is contained in:
Rodrigo Verdiani 2025-10-26 13:22:07 -03:00
parent 6b90a09661
commit bd59f3e925
3 changed files with 5 additions and 1 deletions

1
.env
View File

@ -7,6 +7,7 @@ MINIO_USER=admin
MINIO_PASS=!E9v4i0v3
WEBSCRAPPER_ENDPOINT=http://localhost:8090/url
MANGAMATCHER_ENDPOINT=http://127.0.0.1:8000/match-title
MANGADEX_USER=rocverde
MANGADEX_PASS=!A3u8e4s0

View File

@ -5,7 +5,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "rapidFuzz", url = "http://127.0.0.1:8000/match-title")
@FeignClient(name = "rapidFuzz", url = "${manga-matcher.endpoint}")
public interface RapidFuzzClient {
@PostMapping
Response mangaSearch(@RequestBody Request dto);

View File

@ -42,3 +42,6 @@ manga-dex:
password: ${MANGADEX_PASS}
client-id: ${MANGADEX_CLIENT_ID}
client-secret: ${MANGADEX_CLIENT_SECRET}
manga-matcher:
endpoint: ${MANGAMATCHER_ENDPOINT}