Refactor: Make domain references dynamic across config and API
This commit is contained in:
@@ -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);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user