- POST /v1/proxy/connect — get gateway node for service type (mobile/residential/seo) - GET /v1/proxy/usage — usage tracking per API key (bytes, GB, requests) - GET /v1/proxy/nodes — list available nodes by capability - GET /v1/proxy/status — network availability + service pricing - NodeSelector: round-robin selection from chain aliases by capability - UsageMeter: per-key tracking of bytes and requests - Three billing models: mobile ($5/GB), residential ($2.50/GB), SEO (per-request) - Auth required for connect/usage, public for status/nodes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
369 B
PHP
20 lines
369 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Mod\Proxy;
|
|
|
|
use Core\Events\WebRoutesRegistering;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
class Boot
|
|
{
|
|
public static array $listens = [
|
|
WebRoutesRegistering::class => 'onWebRoutes',
|
|
];
|
|
|
|
public function onWebRoutes(): void
|
|
{
|
|
Route::prefix('v1/proxy')->group(__DIR__ . '/Routes/api.php');
|
|
}
|
|
}
|