Permalink
Browse files

Fix Issue #21

  • Loading branch information...
prinick96 committed Mar 28, 2017
1 parent c7a4b14 commit 2cd30e1081eaf3ce292b3cc1077735928b1088ea
Showing with 12 additions and 18 deletions.
  1. +0 −13 api/http/post.php
  2. +7 −0 core/api_core.php
  3. +5 −0 core/app_core.php
  4. +0 −5 core/kernel/Ocrend.php
@@ -56,16 +56,3 @@
return $response;
});
/**
* Ejemplo acceso rest
* @return Devuelve un json con información acerca del éxito o posibles errores.
*/
$app->post('/ejemplo',function($request, $response){
$e = new Ejemplo;
$response->withJson($e->foo($_POST));
return $response;
});
@@ -19,7 +19,14 @@
require('../core/kernel/Ocrend.php');
require('../vendor/autoload.php');
//------------------------------------------------
# Router para URL's amigables
$router = new Router;
//------------------------------------------------
# Activación del Firewall
!FIREWALL ?: new Firewall;
?>
@@ -43,4 +43,9 @@
# Router para URL's amigables
$router = new Router;
//------------------------------------------------
# Activación del Firewall
!FIREWALL ?: new Firewall;
?>
@@ -33,9 +33,4 @@ function __models_autoload(string $model) {
}
}
//------------------------------------------------
# Activación del Firewall
!FIREWALL ?: new Firewall;
?>

0 comments on commit 2cd30e1

Please sign in to comment.