You've already forked AstralRinth
forked from didirus/AstralRinth
Fix v1 servers handling (#4596)
This commit is contained in:
committed by
GitHub
parent
977de0e18a
commit
a4015d9df3
@@ -84,7 +84,7 @@ export async function useServersFetch<T>(
|
|||||||
? `${base}/modrinth/v${version}/${path.replace(/^\//, '')}`
|
? `${base}/modrinth/v${version}/${path.replace(/^\//, '')}`
|
||||||
: version === 'internal'
|
: version === 'internal'
|
||||||
? `${base}/_internal/${path.replace(/^\//, '')}`
|
? `${base}/_internal/${path.replace(/^\//, '')}`
|
||||||
: `${base}/modrinth/v${version}/${path.replace(/^\//, '')}`
|
: `${base}/v${version}/${path.replace(/^\//, '')}`
|
||||||
|
|
||||||
const headers: Record<string, string> = {
|
const headers: Record<string, string> = {
|
||||||
'User-Agent': 'Modrinth/1.0 (https://modrinth.com)',
|
'User-Agent': 'Modrinth/1.0 (https://modrinth.com)',
|
||||||
|
|||||||
Reference in New Issue
Block a user