Browse Source

Reverse proxy mapping

Mario Martínez Hernández 2 months ago
parent
commit
1fef68e249

+ 1 - 1
src/main/java/es/uv/saic/feign/CoreClient.java

@@ -20,7 +20,7 @@ import es.uv.saic.dto.ProcesDTO;
 import es.uv.saic.dto.TascaDTO;
 import es.uv.saic.dto.TascaInformeTransferDTO;
 
-@FeignClient(value = "core-service", url = "${saic.url.core.domain}")
+@FeignClient(value = "core-service", url = "${saic.url.core.domain}/core")
 public interface CoreClient {
     //IndicadorController.java
     @GetMapping("/getFromTitulacio/{idTitulacio}/{curs}")

+ 2 - 1
src/main/java/es/uv/saic/web/DocumentController.java

@@ -6,6 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 import es.uv.saic.dto.ArchiveOrganDTO;
@@ -16,8 +17,8 @@ import es.uv.saic.service.DocumentService;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 
-
 @RestController
+@RequestMapping("/docs")
 public class DocumentController {
     @Autowired
     private DocumentService ds;

+ 2 - 0
src/main/java/es/uv/saic/web/DownloadController.java

@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -55,6 +56,7 @@ import fr.opensagres.xdocreport.template.formatter.FieldsMetadata;
 
 
 @RestController
+@RequestMapping("/docs")
 public class DownloadController {
 
 	@Autowired 

+ 2 - 0
src/main/java/es/uv/saic/web/PlantillaController.java

@@ -14,11 +14,13 @@ import es.uv.saic.service.PlantillaService;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.DeleteMapping;
 import org.springframework.web.bind.annotation.GetMapping;
 
 
 @RestController
+@RequestMapping("/docs")
 public class PlantillaController {
     @Autowired
     private PlantillaService ps;