mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-21 17:17:47 +01:00
d51e5ab65d
- fix: Translation fixes - fix: Various fixes - feat: PB translations, configuration changes - fix: Bugfixes GitOrigin-RevId: 55f8b148c42a296162fc707c36a5146ca0073b4b
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
export default class HttpClient {
|
|
search (schema, text, page, itemsPerPage) {
|
|
const params = new URLSearchParams()
|
|
params.append('query', text)
|
|
if (page) {
|
|
params.append('page', page)
|
|
}
|
|
if (itemsPerPage) {
|
|
params.append('page_size', itemsPerPage)
|
|
}
|
|
const url = '/v1/' + schema + '/search/?' + params
|
|
return this.nativeClient.request({
|
|
method: 'get',
|
|
url: url,
|
|
cache: false
|
|
})
|
|
}
|
|
}
|