mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
The FE-host rule matched PathPrefix(`/v1/`) at priority 10000 and sent it to the Go indexer, which owns no such path — so the frontend's OWN server routes (/v1/pchain, /v1/config, /v1/csrf, /v1/proxy, /v1/tokens/*) were answered by Go's plain-text "404 page not found". /v1/pchain is where the validators page reads platform.getCurrentValidators, so the page rendered 0 validators / 0 LUX staked against a chain holding 5 validators and 2,500,000,000 LUX. Measured: POST /v1/pchain was 404 through the ingress and 200 straight at the FE pod. One concern per host now. The FE host keeps only /health and the brand SVGs on the Go binary; everything else is the frontend. On the API host the inverse: PathPrefix(`/v1/`) is served verbatim rather than enumerating four of its prefixes, which had left the Blockscout stats surface (/v1/counters, /v1/lines, /v1/pages/*) falling into the catch-all and being rewritten to /v1/indexer/cchain/v1/counters -> 404. Drops mainpage-rewrite: the Go binary serves /main-page/* verbatim, so rewriting it to /homepage/* 404s the homepage widgets. Co-authored-by: Hanzo Dev <[email protected]>