File tree Expand file tree Collapse file tree
packages/web/src/app/api/(client) Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export const search = async (body: SearchRequest): Promise<SearchResponse | Serv
3838}
3939
4040export const getFileSource = async ( queryParams : FileSourceRequest ) : Promise < FileSourceResponse | ServiceError > => {
41- const url = new URL ( "/api/source" ) ;
41+ const url = new URL ( "/api/source" , window . location . origin ) ;
4242 for ( const [ key , value ] of Object . entries ( queryParams ) ) {
4343 url . searchParams . set ( key , value . toString ( ) ) ;
4444 }
@@ -54,7 +54,7 @@ export const getFileSource = async (queryParams: FileSourceRequest): Promise<Fil
5454}
5555
5656export const listRepos = async ( queryParams : ListReposQueryParams ) : Promise < ListReposResponse | ServiceError > => {
57- const url = new URL ( "/api/repos" ) ;
57+ const url = new URL ( "/api/repos" , window . location . origin ) ;
5858 for ( const [ key , value ] of Object . entries ( queryParams ) ) {
5959 url . searchParams . set ( key , value . toString ( ) ) ;
6060 }
You can’t perform that action at this time.
0 commit comments