fix
patch
gateway
feat/phase-2g-bundle
fix(gateway): use originalUrl for canister proxy path under /api/v1 mount
Express strips the app.use('/api/v1') prefix inside the proxy handler, so req.path was only the suffix (e.g. /notes). The gateway called the canister at /notes instead of /api/v1/notes, producing NOT_FOUND for authenticated list/create.
- Add upstreamPathAndQuery(req) using req.originalUrl (+ URL parse fallback). - Document behavior in hub/gateway/README.md.
Also ship ICP hub canister work already in tree: Migration.mo + migration hook for ProposalRecord V0→V1 (base_state_id/external_ref), HTTP upgrade for POST, pathOnly URL normalization, README notes on stable upgrades and HTTP gateway.
sha256:00806e3a59c8bf0c011839229f13f18920c94132588b794adb0bf59544046789
sha
sha256:69522760c52ad1f165e469e331a99db113b31fd730c5405a55c14707cb8fe882
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:00806e3a59c8bf0c011839229f13f18920c94132588b794adb0bf59544046789 --body "your comment"
No comments yet. Be the first to start the discussion.