Refactor: Make domain references dynamic across config and API

This commit is contained in:
mstfyldz
2026-02-22 17:38:18 +03:00
parent a28bef7c58
commit 9a558dfab8
2 changed files with 10 additions and 6 deletions

View File

@@ -323,7 +323,7 @@ if (!isset($_GET['action'])) {
'GET /api.php?action=get_token&api_key=YOUR_KEY' => 'Get access token',
'GET /api.php?action=get_config&token=YOUR_TOKEN' => 'Get portal config',
],
'documentation' => 'https://docs.yourdomain.com'
'documentation' => 'https://' . ($_SERVER['HTTP_HOST'] ?? 'localhost') . '/docs'
], JSON_PRETTY_PRINT);
}
?>