Skip to content

Commit

Permalink
more standard approach to handle input from post/put and router
Browse files Browse the repository at this point in the history
  • Loading branch information
rmahoney-bl committed Dec 13, 2016
1 parent c274770 commit 8e90f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ public function run($method = false, $path = false, &$code = false)
try {
http_response_code(200);
ob_start();
array_unshift($route[2], $this->getJsonInput());
$response = $this->execute($route[1], $route[2]);
$input = [$this->getJsonInput(), $route[2]];
$response = $this->execute($route[1], $input);
if ($response === false) {
$output = false;
} else {
Expand Down

0 comments on commit 8e90f19

Please sign in to comment.