From 91f114b2c57da51370e84e8b8c71720daf23afa4 Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Thu, 30 Nov 2023 11:47:34 +0100 Subject: [PATCH] fix: remove not needed endpoint --- .../mailservice/api/controller/TranslationController.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/de/caritas/cob/mailservice/api/controller/TranslationController.java b/src/main/java/de/caritas/cob/mailservice/api/controller/TranslationController.java index b6a3bb1..3516b86 100644 --- a/src/main/java/de/caritas/cob/mailservice/api/controller/TranslationController.java +++ b/src/main/java/de/caritas/cob/mailservice/api/controller/TranslationController.java @@ -7,7 +7,6 @@ import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.ResponseBody; @@ -23,12 +22,6 @@ public ResponseEntity> getTranslations() { return new ResponseEntity<>(result, org.springframework.http.HttpStatus.OK); } - @GetMapping(value = "/translations/{lang}") - public ResponseEntity> getTranslations(@PathVariable("lang") String languageCode) { - var result = translationService.fetchTranslations(languageCode); - return new ResponseEntity<>(result, org.springframework.http.HttpStatus.OK); - } - @GetMapping(value = "/translations/evict") @ResponseBody public String evictTranslationCache() {