Skip to content

Commit

Permalink
Update URLs for workers ⚙️
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbassy committed Nov 16, 2023
1 parent bc9faab commit 1ca981c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/create/ImagePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ async function searchPictures() {
results.value = []
return
}
const response = await fetch(`https://api.quizzing.ninja/backgrounds/search?query=${query.value}`).then(
(res) => res.json() as Promise<IUnsplashSearchResult[]>
)
const response = await fetch(
`https://quizzing.abass.workers.dev/backgrounds/search?query=${query.value}`
).then((res) => res.json() as Promise<IUnsplashSearchResult[]>)
results.value = response
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/create/SlideEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function onOptimise() {
console.warn('No image to optimised; skipping')
return
}
const compressResponse = await fetch('https://api.quizzing.ninja/compress', {
const compressResponse = await fetch('https://quizzing.abass.workers.dev/compress', {
method: 'POST',
body: questionImage,
})
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "quizzing"
compatibility_date = "2022-05-22"
main = "dist-worker/handler.mjs"
routes = ["api.quizzing.ninja/*"]
routes = ["quizzing.pages.dev/*"]
workers_dev = true

[miniflare]
Expand Down

0 comments on commit 1ca981c

Please sign in to comment.