Skip to content

Commit

Permalink
fix: remove not needed endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Nov 30, 2023
1 parent a93c3fe commit 91f114b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand All @@ -23,12 +22,6 @@ public ResponseEntity<Map<String, String>> getTranslations() {
return new ResponseEntity<>(result, org.springframework.http.HttpStatus.OK);
}

@GetMapping(value = "/translations/{lang}")
public ResponseEntity<Map<String, String>> 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() {
Expand Down

0 comments on commit 91f114b

Please sign in to comment.