Se maneja la seguridad de controllers

parent b7e2a867
......@@ -7,7 +7,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping("/api/v1.0/users")
public class UserController {
......
......@@ -13,9 +13,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/canton")
public class UzyTCantonController {
private final IServiceUzyTCanton serviceUzyTCanton;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/catalagosgen")
public class UzyTCatalogosGeneralesController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/clasificadorP")
public class UzyTClasificadorPresupController {
......
......@@ -10,9 +10,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/lineaoperativa")
public class UzyTLineaOperativaController {
private final IServiceUzyTLineaOperativa serviceUzyTLineaOperativa;
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/menu")
public class UzyTMenuController {
private final IServiceUzyTMenu serviceUzyTMenu;
......
......@@ -15,9 +15,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/parroquia")
public class UzyTParroquiaController {
private final IServiceUzyTParroquia serviceUzyTParroquia;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/perfil")
public class UzyTPerfilController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/perfilmenu")
public class UzyTPerfilMenuController {
......
......@@ -7,7 +7,7 @@ import javax.validation.constraints.NotNull;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/perfilusuario")
public class UzyTPerfilUsuarioController {
......
......@@ -11,9 +11,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/planificacion")
public class UzyTPlanificacionController {
private final IServiceUzyTPlanificacion serviceUzyTPlanificacion;
......
......@@ -16,9 +16,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/provincia")
public class UzyTProvinciaController {
private final IServiceUzyTProvincia serviceUzyTProvincia;
......
......@@ -14,9 +14,8 @@ import java.util.Set;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/usuario")
public class UzyTUsuarioController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/valorpar")
public class UzyTaValorParController {
private final IServiceUzyTaValorPar serviceUzyTaValorPar;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/actproy")
public class UzyTavActProyController {
private final IServiceUzyTavActProy serviceUzyTavActProy;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/actaprueba")
public class UzyTavActaPruebaController {
private final
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/actaresponsa")
public class UzyTavActaResponsaController {
private final IServiceUzyTavActaResponsa serviceUzyTavActaResponsa;
......
......@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/actasperfilProyec")
public class UzyTavActasPerfil_ProyecController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/activprog")
public class UzyTavActivProgController {
private final IServiceUzyTavActivProg serviceUzyTavActivProg;
......
......@@ -14,7 +14,7 @@ import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.List;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/anexos")
public class UzyTavAnexoSPRController {
private final IServiceUzyTavAnexoSPR serviceUzyTavAnexoSPR;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/anualvalor")
public class UzyTavAnualValorController {
private final
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/cabcomca")
public class UzyTavCabComcaController {
private final IServiceUzyTavCabComca serviceUzyTavCabComca;
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/cabparaevaf")
public class UzyTavCabParaevafController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/cabevalp")
public class UzyTavCabeValpController {
......
......@@ -14,7 +14,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/claspre")
public class UzyTavClasPreController {
......
......@@ -14,7 +14,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/ConfObj")
public class UzyTavConfObjController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/ConfTipo")
public class UzyTavConfTipoController {
......
......@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/configuracion")
public class UzyTavConfiguracionController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/conparaeva")
public class UzyTavConparaEvaController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/consolca")
public class UzyTavConsolcaController {
......
......@@ -14,7 +14,7 @@ import java.util.NoSuchElementException;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/convoca")
public class UzyTavConvocaController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/desigdoc")
public class UzyTavDesigDocController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/desigestu")
public class UzyTavDesigEstuController {
private final IServiceUzyTavDesigEstu serviceUzyTavDesigEstu;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/detactproy")
public class UzyTavDetActproyController {
private final IServiceUzyTavDetActproy serviceUzyTavDetActproy;
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/detcomca")
public class UzyTavDetComcaController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/docompar")
public class UzyTavDoComparController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/docparti")
public class UzyTavDocPartiController {
private final IServiceUzyTavDocParti serviceUzyTavDocParti;
......
......@@ -9,7 +9,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/estrategiasvplan")
public class UzyTavEstrategiasVPlanController {
private final IServiceUzyTavEstrategiasVPlan serviceUzyTavEstrategiasVPlan;
......
package ec.edu.espe.movilidad.MovilidadWS.Controller;
import ec.edu.espe.movilidad.MovilidadWS.Dto.DtoUzyTavDocParti;
import ec.edu.espe.movilidad.MovilidadWS.Dto.DtoUzyTavEstuParti;
import ec.edu.espe.movilidad.MovilidadWS.Service.UzyTavEstuParti.IServiceUzyTavEstuParti;
......@@ -13,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/estuparti")
public class UzyTavEstuPartiController {
private final IServiceUzyTavEstuParti serviceUzyTavEstuParti;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/evalproy")
public class UzyTavEvalProyController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/horaejec")
public class UzyTavHorEjecController {
private final IServiceUzyTavHorEjec serviceUzyTavHorEjec;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/instproy")
public class UzyTavInstProyController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/instituc")
public class UzyTavInstitucController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/linea")
public class UzyTavLineaController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/objplanvinvula")
public class UzyTavObjPlanVinvulaController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/objetivosbuenvivir")
public class UzyTavObjetivoBVivirController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/objetivosEstraInsti")
public class UzyTavObjetivosEstraInstiController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/opcioninstitucion")
public class UzyTavOpcionInstitucionController {
......
......@@ -9,7 +9,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/paraeva")
public class UzyTavParaEvaController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/parametrosdet")
public class UzyTavParametros_DetController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/planvprograma")
public class UzyTavPlanVProgramaController {
......
......@@ -13,7 +13,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/pobla")
public class UzyTavPoblaController {
......
......@@ -13,7 +13,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/poblaproy")
public class UzyTavPoblaProyController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/tavpresup")
public class UzyTavPresupController {
private final IServiceUzyTavPresup serviceUzyTavPresup;
......
......@@ -13,7 +13,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/progObj")
public class UzyTavProgObjController {
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/progObjecEstar")
public class UzyTavProgObjEstartegicoController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/programaeplanv")
public class UzyTavPrograma_EplanvController {
......
......@@ -13,7 +13,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/programav")
public class UzyTavPrograma_VController {
......
......@@ -13,7 +13,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/prolin")
public class UzyTavProlinController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/proyec")
public class UzyTavProyecController {
private final IServiceUzyTavProyec serviceUzyTavProyec;
......
......@@ -11,7 +11,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/responsableprog")
public class UzyTavResponsableProgController {
......
......@@ -10,7 +10,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/seguim")
public class UzyTavSeguimController {
private final IServiceUzyTavSeguim serviceUzyTavSeguim;
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/sublinea")
public class UzyTavSubLineaController {
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/tavtipres")
public class UzyTavTipresController {
private final IServiceUzyTavTipres serviceUzyTavTipres;
......
......@@ -13,9 +13,8 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION + "/zonadetalle")
public class UzyTavZonaDetalleController {
private final IServiceUzyTavZonaDetalle serviceUzyTavZonaDetalle;
......
......@@ -12,7 +12,7 @@ import java.util.List;
import static ec.edu.espe.movilidad.MovilidadWS.Constant.GlobalConstants.V1_API_VERSION;
@RestController
@CrossOrigin(origins = "*")
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping(V1_API_VERSION+"/objetivoprograma")
public class UzytavObjetivoProgramaController {
......
......@@ -15,12 +15,10 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JwtAuthenticationFilter extends OncePerRequestFilter {
private static final Logger loggerAuth = LoggerFactory.getLogger(JwtAuthenticationFilter.class);
@Autowired
JwtUserDetailsService jwtUserDetailsService;
......@@ -29,10 +27,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
// Obtener el correo electrónico del encabezado
String email = request.getHeader("email");
String Token = request.getHeader("Authorization");
loggerAuth.info("Email válido obtenido en el backend: {}", email);
loggerAuth.info("Token válido obtenido en el backend: {}", Token);
//String Token = request.getHeader("Authorization"); loggerAuth.info("Token válido obtenido en el backend: {}", Token);
if (email != null && SecurityContextHolder.getContext().getAuthentication() == null) {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment