<?php

header('Content-Type: application/json');

$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http";
$host = $_SERVER['HTTP_HOST'];
$basePath = rtrim(dirname($_SERVER['REQUEST_URI']), '/');

$baseURL = $protocol . "://" . $host . $basePath;

$requestBody = file_get_contents('php://input');
$data = json_decode($requestBody, true);

$response = [
    "data" => [
        "getSmartersProAll" => [
            "__typename"    => "SmartersProAll",
            "id"            => "6f89a48b-f4b7-4ff9-8400-9feb1792bf7e",
            "basesbpurl"    => $baseURL . "/api.php",
            "securityurl"   => $baseURL . "/dns.php",
            "clientsbpurl"  => $baseURL . "/api.php",
            "config1"       => "https://smartersapi-android.servep2p.com/?/Android",
            "config2"       => "m0BK3W4zYVL7uvx",
            "config3"       => "dp2ZcuL83mPT4AIRhMsnWGE9JkgfQ1lrKNzHa7xi5C0vFUBqeV",
            "config4"       => "https://smartersapi-android.servep2p.com/?/And09123jfi",
            "config5"       => "",
            "createdAt"     => "2023-12-06T12:23:55.846Z",
            "updatedAt"     => "2023-12-06T12:23:55.846Z"
        ]
    ]
];

echo json_encode($response);
