Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(PocketIC): route requests to /_/ in PocketIC HTTP gateway #1574

Merged
merged 4 commits into from
Sep 24, 2024

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Sep 19, 2024

The PocketIC HTTP gateway routes requests whose paths start with /_/ and for which no canister ID can be found directly to the PocketIC instance/replica (this only used to apply to requests for /_/dashboard independently of whether a canister ID could be found). This way, the PocketIC HTTP gateway could be used to browse all "hidden" replica paths in local development without talking to the replica directly (which requires distributing two URLs to the client - one for the gateway and another one for the replica).

@mraszyk mraszyk requested a review from a team as a code owner September 19, 2024 08:36
@github-actions github-actions bot added the chore label Sep 19, 2024
@mraszyk mraszyk added this pull request to the merge queue Sep 24, 2024
Merged via the queue into master with commit ecbfda8 Sep 24, 2024
24 checks passed
@mraszyk mraszyk deleted the mraszyk/pic-gateway-route-underscore branch September 24, 2024 07:15
frankdavid pushed a commit that referenced this pull request Sep 25, 2024
The PocketIC HTTP gateway routes requests whose paths start with `/_/`
and for which no canister ID can be found directly to the PocketIC
instance/replica (this only used to apply to requests for `/_/dashboard`
independently of whether a canister ID could be found). This way, the
PocketIC HTTP gateway could be used to browse all "hidden" replica paths
in local development without talking to the replica directly (which
requires distributing two URLs to the client - one for the gateway and
another one for the replica).
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
…ity#1574)

The PocketIC HTTP gateway routes requests whose paths start with `/_/`
and for which no canister ID can be found directly to the PocketIC
instance/replica (this only used to apply to requests for `/_/dashboard`
independently of whether a canister ID could be found). This way, the
PocketIC HTTP gateway could be used to browse all "hidden" replica paths
in local development without talking to the replica directly (which
requires distributing two URLs to the client - one for the gateway and
another one for the replica).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants