From a8bfe7a3949bfff9241cc6c7f92d4f401669547b Mon Sep 17 00:00:00 2001 From: Raydberg Gabriel Date: Tue, 7 Oct 2025 23:23:56 -0500 Subject: [PATCH] update --- .../gateway/fallback/FallbackController.java | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/src/main/java/com/gateway/fallback/FallbackController.java b/src/main/java/com/gateway/fallback/FallbackController.java index 0915658..c9f8029 100644 --- a/src/main/java/com/gateway/fallback/FallbackController.java +++ b/src/main/java/com/gateway/fallback/FallbackController.java @@ -8,49 +8,14 @@ @RequestMapping("/fallback") public class FallbackController { - @RequestMapping(value = "/{service}") public ResponseEntity genericServiceFallback(@PathVariable String service) { String body = String.format("El servicio '%s' no está disponible en este momento. Por favor, inténtalo más tarde.", service); return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE).body(body); } - - @GetMapping("/billing") - public ResponseEntity billingServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de facturación no está disponible en este momento. Por favor, inténtalo más tarde."); - } - - @GetMapping("/chat") - public ResponseEntity chatServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de chat no está disponible en este momento. Por favor, inténtalo más tarde."); - } - - @GetMapping("/classes") - public ResponseEntity classesServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de clases no está disponible en este momento. Por favor, inténtalo más tarde."); - } - - @GetMapping("/members") - public ResponseEntity membersServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de miembros no está disponible en este momento. Por favor, inténtalo más tarde."); - } - - @GetMapping("/notifications") - public ResponseEntity notificationsServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de notificaciones no está disponible en este momento. Por favor, inténtalo más tarde."); + @GetMapping("/{service}") + public ResponseEntity specificServiceFallback(@PathVariable String service) { + return genericServiceFallback(service); } - - @GetMapping("/security") - public ResponseEntity securityServiceFallback() { - return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE) - .body("El servicio de autenticacion no está disponible en este momento. Por favor, inténtalo más tarde."); - } - - -} +} \ No newline at end of file