Created
March 20, 2020 05:41
-
-
Save takahashi-h5/b233f3776405d1a103f9519ea217b1c9 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->delete( | |
'/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