Skip to content

Commit

Permalink
Fix Issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
prinick96 committed Mar 28, 2017
1 parent c7a4b14 commit 2cd30e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
13 changes: 0 additions & 13 deletions api/http/post.php
Expand Up @@ -56,16 +56,3 @@


return $response; 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;
});
7 changes: 7 additions & 0 deletions core/api_core.php
Expand Up @@ -19,7 +19,14 @@
require('../core/kernel/Ocrend.php'); require('../core/kernel/Ocrend.php');
require('../vendor/autoload.php'); require('../vendor/autoload.php');


//------------------------------------------------

# Router para URL's amigables # Router para URL's amigables
$router = new Router; $router = new Router;


//------------------------------------------------

# Activación del Firewall
!FIREWALL ?: new Firewall;

?> ?>
5 changes: 5 additions & 0 deletions core/app_core.php
Expand Up @@ -43,4 +43,9 @@
# Router para URL's amigables # Router para URL's amigables
$router = new Router; $router = new Router;


//------------------------------------------------

# Activación del Firewall
!FIREWALL ?: new Firewall;

?> ?>
5 changes: 0 additions & 5 deletions core/kernel/Ocrend.php
Expand Up @@ -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.