Commit f1abfd1
committed
expose health/indexer-progress + add /api/* redirects on ordpool.space
Two related changes:
1. Rename /api/v1/internal/indexer-progress → /api/v1/health/indexer-progress
and drop the localhost gate. The gate was a no-op anyway: cloudflared
forwards to 127.0.0.1:8999 on happysrv, so every public request
already passes the isLocal check. Body is non-sensitive operational
data (lastSuccessAt, lagMinutes, skippedCount) — safe to expose.
Renaming clarifies the intent: this is a health endpoint.
2. Add 301 redirects on Pages for /api/* and /api/v1/* → api.ordpool.space.
ordpool is a mempool fork; users follow mempool's docs and expect
those examples to work against ordpool.space too. The v2 SPA uses
absolute apiBaseUrl, so this only matters for external API consumers
(curl, scripts, the upstream docs and FAQ examples).
Updated comment in ordpool-missing-stats.ts referring to the old path.
healthcheck-ping.sh path bump ships separately (deploy-happyserver repo).1 parent eed7ef7 commit f1abfd1
3 files changed
Lines changed: 21 additions & 16 deletions
File tree
- backend/src/api
- explorer/_ordpool
- frontend/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
0 commit comments