Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 29, 2019 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e3aa4b94a44035c4fb7768da8c19521e to your computer and use it in GitHub Desktop.
Save parzibyte/e3aa4b94a44035c4fb7768da8c19521e to your computer and use it in GitHub Desktop.
<?php
$enrutador
->group(["before" => "logueado"], function ($enrutadorVistasPrivadas) {
$enrutadorVistasPrivadas
->get("/perfil/cambiar-password", ["Parzibyte\Controladores\ControladorUsuarios", "perfilCambiarPassword"])
->post("/perfil/cambiar-password", ["Parzibyte\Controladores\ControladorUsuarios", "perfilGuardarPassword"])
->get("/notas", ["Parzibyte\Controladores\ControladorNotas", "index"])
->get("/notas/agregar", ["Parzibyte\Controladores\ControladorNotas", "agregar"])
->post("/notas/guardar", ["Parzibyte\Controladores\ControladorNotas", "guardar"])
->get("/notas/editar/{idNota}", ["Parzibyte\Controladores\ControladorNotas", "editar"])
->get("/notas/eliminar/{idNota}", ["Parzibyte\Controladores\ControladorNotas", "confirmarEliminacion"])
->post("/notas/eliminar", ["Parzibyte\Controladores\ControladorNotas", "eliminar"])
->post("/notas/editar", ["Parzibyte\Controladores\ControladorNotas", "guardarCambios"])
->get("/logout", ["Parzibyte\Controladores\ControladorLogin", "logout"]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment