diff --git a/app/Http/Controllers/PlayerController.php b/app/Http/Controllers/PlayerController.php index 390a445b..2da2cd9a 100644 --- a/app/Http/Controllers/PlayerController.php +++ b/app/Http/Controllers/PlayerController.php @@ -51,8 +51,6 @@ class PlayerController extends Controller [ 'only' => ['delete', 'rename', 'setTexture', 'clearTexture', 'setPreference'] ]); - - return json('dd', 0); } public function index() diff --git a/app/Services/View.php b/app/Services/View.php deleted file mode 100644 index 604f6966..00000000 --- a/app/Services/View.php +++ /dev/null @@ -1,45 +0,0 @@ -render(); - } - - // function reload - public static function json() - { - @header('Content-type: application/json; charset=utf-8'); - $args = func_get_args(); - if (count($args) == 1) { - self::jsonCustom($args[0]); - } elseif(count($args) == 2) { - self::jsonException($args[0], $args[1]); - } - } - - private static function jsonCustom(Array $array) - { - if (is_array($array)) { - Session::save(); - exit(json_encode($array)); - } - } - - private static function jsonException($msg, $errno) - { - Session::save(); - exit(json_encode([ - 'errno' => $errno, - 'msg' => $msg - ])); - } -} diff --git a/config/app.php b/config/app.php index 88506215..f54ec93c 100644 --- a/config/app.php +++ b/config/app.php @@ -227,7 +227,6 @@ return [ /** * Blessing Skin */ - 'View' => App\Services\View::class, 'Option' => App\Services\Facades\Option::class, 'Utils' => App\Services\Utils::class, 'Minecraft' => App\Services\Minecraft::class,