Commit 8dd4808
Claude
admin: also register issue-desktop on RegisterOnMux
The Stockyard binary deploys two HTTP server entrypoints in one
process: standalone apiserver via s.mux (used by tests + isolated
runs) and the unified-binary mount via RegisterOnMux (used in
production where billing/api share a port with the marketing site
and the 6 flagship apps).
The first commit of this endpoint (09298d1) only registered the
new route in s.mux. Production Railway deploy serves via
RegisterOnMux, so the route 404'd in production while passing in
local-mux probes.
Symptom that surfaced this: POST /api/admin/issue-desktop with no
auth returned the proper 401 (s.mux somehow served), but with
auth header it 404'd with the marketing site's not-found page —
that 401 was actually from a different code path; the 404 came
from RegisterOnMux not knowing the route. Subtle.
Fix: register on the RegisterOnMux block too, matching what the
existing /api/admin/issue does (it has identical dual registration).1 parent 4197d46 commit 8dd4808
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
0 commit comments