mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-03 11:20:07 -05:00
Fix cors issues
This commit is contained in:
parent
b0505ffde2
commit
d7e9b663d5
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ export default {
|
|||
|
||||
// get rest of streams from api
|
||||
const resData: CategoryData = await getEndpoint(
|
||||
`api/discover/${this.$route.params.game}/?cursor=${cursor}`
|
||||
`api/discover/${this.$route.params.game}?cursor=${cursor}`
|
||||
).catch((err) => {
|
||||
throw err
|
||||
})
|
||||
|
|
|
@ -59,7 +59,7 @@ export default {
|
|||
const res = await fetch(
|
||||
`${this.protocol}${
|
||||
import.meta.env.SAFETWITCH_BACKEND_DOMAIN
|
||||
}/api/discover/?cursor=${cursor}`
|
||||
}/api/discover?cursor=${cursor}`
|
||||
)
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch data')
|
||||
|
|
Loading…
Reference in a new issue