Architecture: ApiClient autoload (HTTP + JWT + error contract) #29

Merged
reviewer-bot merged 7 commits from agent/5b3da417b50c into main 2026-08-19 15:45:01 +00:00
Showing only changes of commit e06cd2a23d - Show all commits
+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"