Commit 246b9b0
claude
cloud: wire routing for /cloud pages and /api/cloud/desktop/* endpoints
Two fixes found during post-deploy verification:
1. /cloud/login/ returned 404 because internal/site/site.go serves a
hardcoded list of static page paths and /cloud/* wasn't on it.
Added both /cloud/ and /cloud/login/ to the list.
2. /api/cloud/desktop/* endpoints returned 401 with 'admin key required'
because the engine auth middleware (internal/engine/auth.go) gates
every /api/ path behind admin auth unless it's in the public
allowlist. The new Cloud routes aren't admin endpoints — they're
cookie-session-authed at the handler level via requireSession —
so they go on the public list. The handlers themselves still
enforce auth on the protected endpoints (me, backup*).
With this push, turning STOCKYARD_CLOUD_ENABLED=1 on will actually
expose the skeleton routes instead of 404/401-ing silently.1 parent 0d4e313 commit 246b9b0
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
388 | 395 | | |
389 | 396 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
0 commit comments