Created
April 23, 2017 04:37
-
-
Save msfidelis/139355184d63b08e562a49b161fbbfbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Lista de todos os livros | |
*/ | |
$app->get('/book', function (Request $request, Response $response) use ($app) { | |
$return = $response->withJson(['msg' => 'Lista de Livros'], 200) | |
->withHeader('Content-type', 'application/json'); | |
return $return; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment