File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const DAR = {
6565 if ( ! ids || ids . length === 0 ) {
6666 return [ ]
6767 }
68- const url = `${ await Config . getOntologyUrl ( ) } /search?id =${ ids } `
68+ const url = `${ await Config . getApiUrl ( ) } /ontology/ search?ids =${ ids } `
6969 try {
7070 const res = await fetchGet ( url , Config . authOpts ( ) )
7171 return res . data
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ export const OntologyService = {
88 if ( obolibraryURL . length === 0 ) {
99 return [ ]
1010 }
11- const baseURL = await Config . getOntologyUrl ( )
12- const params = { id : obolibraryURL }
11+ const baseURL = await Config . getApiUrl ( )
12+ const params = { ids : obolibraryURL }
1313 try {
1414 const data = storage . getData ( obolibraryURL )
1515 if ( data !== null ) {
1616 return JSON . parse ( data )
1717 }
1818 else {
19- const response = await fetchGet ( `${ baseURL } /search` , { params } )
19+ const response = await fetchGet ( `${ baseURL } /ontology/ search` , { params } )
2020 const data = response . data
2121 storage . setData ( obolibraryURL , JSON . stringify ( data ) )
2222 return data
You can’t perform that action at this time.
0 commit comments