Fix v1 servers handling (#4596)

This commit is contained in:
François-Xavier Talbot
2025-10-21 07:40:10 +01:00
committed by GitHub
parent 977de0e18a
commit a4015d9df3

View File

@@ -84,7 +84,7 @@ export async function useServersFetch<T>(
? `${base}/modrinth/v${version}/${path.replace(/^\//, '')}`
: version === 'internal'
? `${base}/_internal/${path.replace(/^\//, '')}`
: `${base}/modrinth/v${version}/${path.replace(/^\//, '')}`
: `${base}/v${version}/${path.replace(/^\//, '')}`
const headers: Record<string, string> = {
'User-Agent': 'Modrinth/1.0 (https://modrinth.com)',