diff --git a/app/Helpers/Helpers.php b/app/Helpers/Helpers.php index c4bd4c0..1f41d61 100755 --- a/app/Helpers/Helpers.php +++ b/app/Helpers/Helpers.php @@ -6,6 +6,10 @@ if (!function_exists('getUrl')) { function getUrl($endpoint = "") { + if (extensionDb('api_address')) { + return extensionDb('api_address') . "/$endpoint"; + } + $tunnel = openTunnel( server()->ip_address, '7806', diff --git a/db.json b/db.json index 1cad235..7c297e7 100755 --- a/db.json +++ b/db.json @@ -3,7 +3,16 @@ "publisher": "HAVELSAN A.\u015e.", "version": "DEV", "version_code": 1, - "database": [], + "database": [ + { + "variable": "api_address", + "type": "text", + "name": "API Adresi", + "required": false, + "global": false, + "writable": false + } + ], "widgets": [], "language": "php", "status": 0, @@ -12,7 +21,7 @@ "support": "aciklab@havelsan.com.tr", "icon": "box-open", "require_key": "false", - "verification": "verify", + "verification": null, "dependencies": null, "sslPorts": null, "display_name": {