Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update URL to match API proposal
  • Loading branch information
erikeldridge committed Feb 13, 2024
commit 8f145c672575aaea3cf057086ad06147144bf113
2 changes: 1 addition & 1 deletion src/remote-config/remote-config-api-client-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class RemoteConfigApiClient {
.then((url) => {
const request: HttpRequestConfig = {
method: 'GET',
url: `${url}/templates/server`,
url: `${url}/namespaces/firebase-server/serverRemoteConfig`,
headers: FIREBASE_REMOTE_CONFIG_HEADERS
};
return this.httpClient.send(request);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/remote-config/remote-config-api-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ describe('RemoteConfigApiClient', () => {
.should.eventually.be.rejectedWith(noProjectId);
});

// // tests for api response validations
// tests for api response validations
runEtagHeaderTests(() => apiClient.getServerTemplate());
runErrorResponseTests(() => apiClient.getServerTemplate());

Expand All @@ -685,7 +685,7 @@ describe('RemoteConfigApiClient', () => {
expect(resp.version).to.deep.equal(TEST_RESPONSE.version);
expect(stub).to.have.been.calledOnce.and.calledWith({
method: 'GET',
url: 'https://firebaseremoteconfig.googleapis.com/v1/projects/test-project/templates/server',
url: 'https://firebaseremoteconfig.googleapis.com/v1/projects/test-project/namespaces/firebase-server/serverRemoteConfig',
headers: EXPECTED_HEADERS,
});
});
Expand Down