mirror of
https://github.com/EDeev/quizlab.git
synced 2026-10-07 20:49:34 +03:00
Qt-клиент: адрес API можно задать переменной QUIZ_API_URL
По умолчанию по-прежнему http://localhost:80.
This commit is contained in:
parent
5f8a036898
commit
e1b4d85fad
1 changed files with 2 additions and 1 deletions
|
|
@ -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"))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue