WIP checkpoint: Architecture: ApiClient autoload (HTTP + JWT + error contract)

This commit is contained in:
2026-08-19 14:31:35 +00:00
parent 77f9b74286
commit e06cd2a23d
+7
View File
@@ -74,6 +74,13 @@ var timeout_seconds: float = 10.0
func _ready() -> void: func _ready() -> void:
# Environment variable override (e.g. for headless smoke tests against a
# backend on a non-default port). Falls back to the ProjectSetting, then
# to the documented default.
var env_url := OS.get_environment("AGP_API_BASE_URL")
if env_url != "":
_base_url = env_url.rstrip("/")
else:
_base_url = str(ProjectSettings.get_setting( _base_url = str(ProjectSettings.get_setting(
"application/agp/api_base_url", "application/agp/api_base_url",
"http://127.0.0.1:8000" "http://127.0.0.1:8000"