Public Share Infra Routing

Public shared links open on the web origin, but the browser talks directly to the owning SynckHub infra API.

Recommended model:

  • page URL: /s/<infra_key>/<tenant_slug>/<repo_slug>/<token>
  • frontend routing table: checked into the web app
  • public API base: <api_base_url>/v1/public/shared-folder-links/...

Why this is the preferred model here

  • the normal app already uses infra-specific api_base_url values
  • there is no extra worker or proxy to maintain
  • routing stays explicit and version controlled
  • the server still returns one canonical public_url

Important rule

tenant_slug and repo_slug are cosmetic. The token is authoritative.

Do not make shared-link correctness depend on repo slug matching.