mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 05:42:13 +08:00
BASE_URL: use util::getenv (#21894)
old-commit-hash: 62d34ed4e5f372f5ed457b4b20b76799272b8776
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
|
||||
#include "selfdrive/common/util.h"
|
||||
|
||||
namespace CommaApi {
|
||||
|
||||
const QString BASE_URL = getenv("API_HOST") != nullptr ? getenv("API_HOST") : "https://api.commadotai.com";
|
||||
const QString BASE_URL = util::getenv("API_HOST", "https://api.commadotai.com").c_str();
|
||||
QByteArray rsa_sign(const QByteArray &data);
|
||||
QString create_jwt(const QJsonObject &payloads = {}, int expiry = 3600);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user