mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-04-21 07:30:24 +00:00
Use backend address.
This commit is contained in:
@@ -244,8 +244,8 @@ const regionDisplay = computed(() => {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/servers.json')
|
//const response = await fetch('/servers.json')
|
||||||
//const response = await fetch('https://backend.beammp.com/servers-info')
|
const response = await fetch('https://backend.beammp.com/servers-info')
|
||||||
console.log(response)
|
console.log(response)
|
||||||
if (!response.ok) throw new Error('Failed to fetch servers')
|
if (!response.ok) throw new Error('Failed to fetch servers')
|
||||||
const data = await response.json()
|
const data = await response.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user