Commit b2566895 authored by Igor Wiedler's avatar Igor Wiedler

[json] adjust json request body recipe

parent 4ce8998a
...@@ -84,8 +84,7 @@ return the post object, including its ``id``, as JSON. ...@@ -84,8 +84,7 @@ return the post object, including its ``id``, as JSON.
$post['id'] = createPost($post); $post['id'] = createPost($post);
$json = json_encode($post); return $app->json($post, 201);
return new Response($json, 201, array('Content-Type' => 'application/json'));
}); });
Manual testing Manual testing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment