vue: join
This commit is contained in:
@@ -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가 지정되지 않았습니다.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user