Skip to content

Commit

Permalink
fix: add missing options to fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 23, 2024
1 parent 4841a22 commit 96e9caf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@
const response = await $fetch(apiUrl, {
params: {
baseEndpoint: selectedBooru.value.domain,
tag,
order: 'count',
limit: 20
limit: 20,
// Booru options
httpScheme: selectedBooru.value.config?.options?.HTTPScheme ?? undefined
}
})
//
Expand Down
13 changes: 9 additions & 4 deletions pages/posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,12 @@
tags: tags.length > 0 ? tags : undefined,
// Filters
rating: selectedFilters.value.rating,
order: selectedFilters.value.sort,
score: selectedFilters.value.score
rating: selectedFilters.value.rating,
score: selectedFilters.value.score,
// Booru options
httpScheme: selectedBooru.value.config?.options?.HTTPScheme ?? undefined
},
retry: false
Expand Down Expand Up @@ -353,14 +356,16 @@
async function onSearchTag(tag: string) {
const apiUrl = config.public.API_URL + '/booru/' + selectedBooru.value.type.type + '/tags'
// TODO: Use Booru options
const response = await $fetch(apiUrl, {
params: {
baseEndpoint: selectedBooru.value.domain,
tag,
order: 'count',
limit: 20
limit: 20,
// Booru options
httpScheme: selectedBooru.value.config?.options?.HTTPScheme ?? undefined
}
})
//
Expand Down

0 comments on commit 96e9caf

Please sign in to comment.