|
|
@ -19,16 +19,20 @@ public class Controlador { |
|
|
|
public String miPerfil(){ |
|
|
|
return "miperfil/miperfil"; |
|
|
|
} |
|
|
|
@GetMapping("/login") |
|
|
|
public String login(){ |
|
|
|
return "login/login"; |
|
|
|
} |
|
|
|
@GetMapping({"","/home","/"}) |
|
|
|
public String indice(Model model){ |
|
|
|
model.addAttribute("listaRespuestas",servicioRespuestas.findAll()); |
|
|
|
return "index"; |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping({"/springsecurity/{usuario}","/springsecurity"}) |
|
|
|
public String springsecurity(@PathVariable(name="usuario", required = false) String usuario, |
|
|
|
Model model) throws MalformedURLException { |
|
|
|
model.addAttribute("titulo","Panel de control security"); |
|
|
|
model.addAttribute("usuario",usuario); |
|
|
|
return "login/login"; |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/registrar") |
|
|
|
public String registrar(){ |
|
|
|
return "Registrar/registrar"; |
|
|
|