vue: join

This commit is contained in:
2021-09-15 19:06:15 +00:00
committed by Gitea
parent ed9301455d
commit 22025bd89e
25 changed files with 781 additions and 142 deletions
+6 -1
View File
@@ -12,11 +12,16 @@ class APIHelper
public static function launch(string $rootPath)
{
try {
$input = json_decode(file_get_contents('php://input'));
$rawInput = file_get_contents('php://input');
$input = Json::decode($rawInput);
} catch (\Exception $e) {
Json::dieWithReason($e->getMessage());
}
if(!$input){
Json::dieWithReason("input이 비어있습니다. {$rawInput}");
}
if (!key_exists('path', $input)) {
Json::dieWithReason('path가 지정되지 않았습니다.');
}