Created
March 20, 2020 05:36
-
-
Save takahashi-h5/d638ccab8ad65113d64af0c60319c72e 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
// add start | |
$app = new Micro(); | |
$app->post( | |
'/api/v2/getData', | |
function () { | |
$ret = [ | |
'name' => 'yamada', | |
'id' => 20 | |
]; | |
echo json_encode($ret); | |
} | |
); | |
$app->handle( | |
$_SERVER["REQUEST_URI"] | |
); | |
// add end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment