Skip to content

Commit 1055b77

Browse files
fix client
1 parent e878ea7 commit 1055b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/src/app/api/(client)/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const search = async (body: SearchRequest): Promise<SearchResponse | Serv
3737
}
3838

3939
export const getFileSource = async (queryParams: FileSourceRequest): Promise<FileSourceResponse | ServiceError> => {
40-
const url = new URL("/api/source");
40+
const url = new URL("/api/source", window.location.origin);
4141
for (const [key, value] of Object.entries(queryParams)) {
4242
url.searchParams.set(key, value.toString());
4343
}
@@ -50,7 +50,7 @@ export const getFileSource = async (queryParams: FileSourceRequest): Promise<Fil
5050
}
5151

5252
export const listRepos = async (queryParams: ListReposQueryParams): Promise<ListReposResponse | ServiceError> => {
53-
const url = new URL("/api/repos");
53+
const url = new URL("/api/repos", window.location.origin);
5454
for (const [key, value] of Object.entries(queryParams)) {
5555
url.searchParams.set(key, value.toString());
5656
}

0 commit comments

Comments
 (0)