Skip to content

Commit c16d4b7

Browse files
committed
feat: point to consent version of the /search APIs
1 parent a98a317 commit c16d4b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libs/ajax/DAR.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/libs/ontologyService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)