mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-09-19 02:04:31 -04:00
docs: publish channels: main api
This commit is contained in:
1 parent
7f6be4f996
commit
06bd2633d7
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -94,7 +94,7 @@
|
||||
<div class="cover ">
|
||||
<h1 class="cover"><span>API_</span><wbr><span>BASE_</span><wbr><span>URL</span></h1>
|
||||
</div>
|
||||
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":core:network/commonMain"><div class="symbol monospace"><span class="token keyword">const </span><span class="token keyword">val </span><a href="-a-p-i_-b-a-s-e_-u-r-l.html">API_BASE_URL</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="source-link-wrapper"><span class="source-link" data-element-type="source-link">(<a href="https://github.com/meshtastic/Meshtastic-Android/blob/main/core/network/src/commonMain/kotlin/org/meshtastic/core/network/HttpClientDefaults.kt#L48">source</a>)</span></span></div><p class="paragraph">Base URL for the Meshtastic public API, installed via the <code class="lang-kotlin">DefaultRequest</code> plugin.</p><p class="paragraph">The Cloudflare R2-backed v2 host, not <code class="lang-kotlin">api.meshtastic.org</code>. v2 is CDN-cached with <code class="lang-kotlin">stale-if-error</code>, and it answers cross-origin requests: v1 replies HTTP 500 to any <code class="lang-kotlin">Origin</code> outside a hardcoded allowlist, so it cannot be reached from a browser at all (meshtastic/api#134).</p></div></div>
|
||||
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":core:network/commonMain"><div class="symbol monospace"><span class="token keyword">const </span><span class="token keyword">val </span><a href="-a-p-i_-b-a-s-e_-u-r-l.html">API_BASE_URL</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="source-link-wrapper"><span class="source-link" data-element-type="source-link">(<a href="https://github.com/meshtastic/Meshtastic-Android/blob/main/core/network/src/commonMain/kotlin/org/meshtastic/core/network/HttpClientDefaults.kt#L48">source</a>)</span></span></div><p class="paragraph">Base URL for the Meshtastic public API, installed via the <code class="lang-kotlin">DefaultRequest</code> plugin.</p><p class="paragraph">The production Worker: R2-backed, CDN-cached with <code class="lang-kotlin">stale-if-error</code>, and cross-origin readable. Never <code class="lang-kotlin">apiv2.meshtastic.org</code> — that hostname is the Worker's staging route and redeploys only on a push to the dormant <code class="lang-kotlin">v2</code> branch, so it serves a frozen copy of the JSON documents compiled into the bundle.</p></div></div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="footer--container">
|
||||
|
||||
File diff suppressed because one or more lines are too long.
File diff suppressed because one or more lines are too long.
File diff suppressed because one or more lines are too long.
File diff suppressed because one or more lines are too long.
File diff suppressed because one or more lines are too long.
Reference in new issue
Block a user