@@ -49,7 +49,7 @@ export function useDependencyGraph({ repoId, apiKey, enabled = true }: UseCached
4949 queryKey : [ 'dependencies' , repoId ] ,
5050 queryFn : async ( ) => {
5151 const data = await fetchWithAuth (
52- `${ API_URL } /api/ repos/${ repoId } /dependencies` ,
52+ `${ API_URL } /repos/${ repoId } /dependencies` ,
5353 apiKey
5454 )
5555 // Save to localStorage on successful fetch
@@ -77,7 +77,7 @@ export function useStyleAnalysis({ repoId, apiKey, enabled = true }: UseCachedQu
7777 queryKey : [ 'style-analysis' , repoId ] ,
7878 queryFn : async ( ) => {
7979 const data = await fetchWithAuth (
80- `${ API_URL } /api/ repos/${ repoId } /style-analysis` ,
80+ `${ API_URL } /repos/${ repoId } /style-analysis` ,
8181 apiKey
8282 )
8383 saveToCache ( 'style-analysis' , repoId , data )
@@ -109,7 +109,7 @@ export function useImpactAnalysis({
109109 queryKey : [ 'impact' , repoId , filePath ] ,
110110 queryFn : async ( ) => {
111111 const data = await fetchWithAuth (
112- `${ API_URL } /api/ repos/${ repoId } /impact?file_path=${ encodeURIComponent ( filePath ) } ` ,
112+ `${ API_URL } /repos/${ repoId } /impact?file_path=${ encodeURIComponent ( filePath ) } ` ,
113113 apiKey
114114 )
115115 saveToCache ( cacheKey , repoId , data )
0 commit comments