mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-07-27 21:02:04 +08:00
b965950a7a
- Changed references in logs.md, pull request template, and various UI components to point to stable.konik.ai. - Updated pairing dialog and related translations to reflect the new URL. - Modified API endpoints and documentation to ensure consistency with the new domain. - Ensured all instances of connect.comma.ai are replaced with stable.konik.ai in user-facing messages and code comments.
16 lines
430 B
C++
16 lines
430 B
C++
#pragma once
|
|
|
|
#include <curl/curl.h>
|
|
#include <string>
|
|
|
|
#include "common/util.h"
|
|
#include "third_party/json11/json11.hpp"
|
|
|
|
namespace CommaApi2 {
|
|
|
|
const std::string BASE_URL = util::getenv("API_HOST", "https://api.konik.ai").c_str();
|
|
std::string create_token(bool use_jwt, const json11::Json& payloads = {}, int expiry = 3600);
|
|
std::string httpGet(const std::string &url, long *response_code = nullptr);
|
|
|
|
} // namespace CommaApi2
|