Skip to content

Serve a landing page at / - #3

Merged
RalfLeonFasler merged 2 commits into
mainfrom
landing-page
Nov 7, 2026
Merged

RalfLeonFasler merged 2 commits into
mainfrom
landing-page

Conversation

@RalfLeonFasler

Copy link
Copy Markdown
Contributor

Summary

  • GET / now serves a small static page instead of a 404. It shows what the server is, that it is a backend for apps with nothing to use in a browser, the public endpoints (/v0, /v0/stats, /healthz; /internal/metrics is left out), and links to the public server, the GitHub org, the spec, the source and Discussions.
  • The page is one HTML file with inline CSS and no JavaScript, compiled into the binary with include_str!, with the version filled in once. No new dependencies, no Caddy changes. Endpoints are shown as paths, so the page is correct on self-hosted servers too.
  • README: new "Public server" section pointing to wss://openbikenet.cloud/v0.

Testing

  • New landing_page test: 200, text/html, endpoints, GitHub link and version in the body.
  • make check passes.
  • Checked in a headless browser on desktop (light and dark) and mobile.

🤖 Generated with Claude Code

RalfLeonFasler and others added 2 commits November 7, 2026 11:38
Opening the server's address in a browser gave a bare 404. Now / shows a
static page: what the server is, that it is a backend for apps, the public
endpoints, the public server and links to the GitHub org, spec, source and
Discussions. The HTML is compiled into the binary; no JavaScript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RalfLeonFasler
RalfLeonFasler merged commit 2bd2e1d into main Nov 7, 2026
2 checks passed
@RalfLeonFasler
RalfLeonFasler deleted the landing-page branch November 7, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant