Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanjunath committed Jan 12, 2025
1 parent edfd0fe commit 1b1ec86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/service-worker/src/armada/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Adapter} from '../adapter';

export interface ContentAPIClient {
export type ContentAPIClient = {
getContent(resource: string, host: string, retry?: string, cacheBust?: boolean): Promise<Response>;
}

Expand Down Expand Up @@ -34,6 +34,7 @@ export class ArmadaAPIClientImpl implements ArmadaAPIClient {
cacheBust?: boolean
): Promise<Response> {
const url = new URL('/v1/content', `${this.protocol}//${host}`);

url.searchParams.append('project_id', this.projectId);
url.searchParams.append('resource', resource);
if (cacheBust) {
Expand Down

0 comments on commit 1b1ec86

Please sign in to comment.