Repositories | Polyback | Log in to see private repositories
627 bytes | parent directory
<?php require $_SERVER['DOCUMENT_ROOT'].'/api/private/core.php';
// An item's name and description from ROBLOX, for the "Sell from the Roblox archive" form.
// ?id=<roblox id> -> {"success":true,"name","description","type","creator"}
use pizzaboxer\ProjectPolygon\API;
use pizzaboxer\ProjectPolygon\Archive;
use pizzaboxer\ProjectPolygon\Users;
API::initialize(["method" => "GET", "admin" => Users::STAFF_ADMINISTRATOR, "secure" => true]);
$details = Archive::RobloxDetails($_GET["id"] ?? "");
if (is_string($details)) API::respond(200, false, $details);
API::respondCustom(["status" => 200, "success" => true] + $details);