Skip to content

Commit

Permalink
📝 APP #220 melhorando API
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Mar 10, 2020
1 parent dc4da20 commit 034d602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appexemplo_v2.0/api/api_controllers/RegiaoAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public static function save(Request $request, Response $response, array $args)
$bodyRequest = $result[0];
$vo = \FormDinHelper::setPropertyVo($bodyRequest,$vo);
}
$bodyRequest = json_decode($request->getBody(),true);
$body = $request->getBody();
$bodyRequest = json_decode($body,true);
$vo = \FormDinHelper::setPropertyVo($bodyRequest,$vo);

$controller = new \Regiao;
Expand Down

0 comments on commit 034d602

Please sign in to comment.