Skip to content

Commit

Permalink
Se ha modificado la muestra de excepciones, se ha borrado la accecibi…
Browse files Browse the repository at this point in the history
…lidad de variables post.
  • Loading branch information
Sleon4 committed Mar 8, 2022
1 parent a80d7af commit 3196bb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LionRoute/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static function init(array $filters): void {
$parser = isset(self::$class_map['RouteParser']) ? new self::$class_map['RouteParser']() : null;
self::$router = new self::$class_map['RouteCollector']($parser);
self::createMiddleware(isset($filters['middleware']) ? $filters['middleware'] : []);
$_POST = json_decode(file_get_contents("php://input"), true);
}

public static function createMiddleware(array $filters): void {
Expand Down Expand Up @@ -106,7 +105,7 @@ public static function dispatch($index) {
self::processInput($index)
);
} catch (\Exception $e) {
return new Request("error", "Page not found. [Dispatch]");
return new Request("error", $e->getMessage());
}
}

Expand Down

0 comments on commit 3196bb0

Please sign in to comment.