0
Fork 0
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:
dragongoose 2023-07-29 21:26:38 -04:00
parent b0505ffde2
commit d7e9b663d5
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 2 additions and 2 deletions

View file

@ -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
})

View file

@ -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')