From e1b4d85fad4eb7268e1c33fed080d850bcd2e750 Mon Sep 17 00:00:00 2001 From: Egor Deev Date: Mon, 5 Oct 2026 18:33:22 +0000 Subject: [PATCH] =?UTF-8?q?Qt-=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82:=20?= =?UTF-8?q?=D0=B0=D0=B4=D1=80=D0=B5=D1=81=20API=20=D0=BC=D0=BE=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=82=D1=8C=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20QUIZ=5FAPI?= =?UTF-8?q?=5FURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit По умолчанию по-прежнему http://localhost:80. --- lab-3/api_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lab-3/api_client.cpp b/lab-3/api_client.cpp index d48fb8f..0930300 100644 --- a/lab-3/api_client.cpp +++ b/lab-3/api_client.cpp @@ -19,7 +19,8 @@ ApiClient::ApiClient(QObject *parent) : QObject(parent) , m_manager(new QNetworkAccessManager(this)) , m_adapter(new QuizJsonAdapter()) - , m_baseUrl("http://localhost:80") + // адрес API можно переопределить переменной окружения QUIZ_API_URL + , m_baseUrl(qEnvironmentVariable("QUIZ_API_URL", "http://localhost:80")) { }