Skip to content

Commit f156727

Browse files
committed
use api.smoo.it again
1 parent 07bf9d9 commit f156727

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/store/xservers.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,28 @@ class XServers extends VuexModule {
7777
// get server data from the api2 server
7878
try {
7979
const { data } = await axios.get(
80-
'https://api2.smoo.it/servers.json',
80+
'https://api.smoo.it/servers.json',
8181
{
8282
timeout: 10000, // 10s
8383
},
8484
)
8585
this.loaded(data)
8686
} catch (error1) {
8787
console.error(error1)
88-
// // fallback to another server
89-
// try {
90-
// const { data } = await axios.get(
91-
// 'https://api2.smoo.it/servers.json',
92-
// {
93-
// timeout: 10000, // 10s
94-
// },
95-
// )
96-
// this.loaded(data)
97-
// } catch (error2) {
98-
// console.error(error2)
99-
// this.failed(error1 as Error)
100-
// }
101-
this.failed(error1 as Error)
88+
89+
// fallback to another server
90+
try {
91+
const { data } = await axios.get(
92+
'https://api2.smoo.it/servers.json',
93+
{
94+
timeout: 10000, // 10s
95+
},
96+
)
97+
this.loaded(data)
98+
} catch (error2) {
99+
console.error(error2)
100+
this.failed(error1 as Error)
101+
}
102102
}
103103
}
104104

0 commit comments

Comments
 (0)