Skip to content

feat(api): answer the front door instead of 404ing it - #4

Merged
ralyodio merged 1 commit into
mainfrom
api-root-route
Aug 11, 2026
Merged

ralyodio merged 1 commit into
mainfrom
api-root-route

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Pasting outreachgraph.up.railway.app into a browser returns:

{"error":{"code":"not_found","message":"route not found"}}

That is the app's own 404 handler working correctly — it registers /health/* and /api/v1/* and nothing at /. It is also indistinguishable from a broken deployment at a glance, and it is what sent us looking for an outage that was not there. The API was healthy the whole time (/health/ready → {"status":"ok","database":"reachable"}).

GET / now returns what is running and where to go instead — service, version, commit, and the health and API paths. An unknown path is still a 404, which is the half of this that has to keep working, so both are tested.

33 tests pass in apps/api.

🤖 Generated with Claude Code

Pasting the API's hostname into a browser returned
{"error":{"code":"not_found","message":"route not found"}}, because the app
registers /health/* and /api/v1/* and nothing at /. That is correct behaviour
and it reads as a broken deployment — it is what sent somebody looking for an
outage that was not there.

GET / now returns what is running and where to go instead: the service name, the
version and commit it was built from, and the health and API paths. An unknown
path is still a 404, which is the half of this that has to keep working.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 16e84d2 into main Aug 11, 2026
8 checks passed
@ralyodio
ralyodio deleted the api-root-route branch August 11, 2026 13:41
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