mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
Use fill v3 API for fetching paper build versions (#5063)
This commit is contained in:
@@ -315,7 +315,7 @@ const fetchLoaderVersions = async () => {
|
||||
|
||||
const fetchPaperVersions = async (mcVersion: string) => {
|
||||
try {
|
||||
const res = await $fetch(`https://api.papermc.io/v2/projects/paper/versions/${mcVersion}`)
|
||||
const res = await $fetch(`https://fill.papermc.io/v3/projects/paper/versions/${mcVersion}`)
|
||||
paperVersions.value[mcVersion] = (res as any).builds.sort((a: number, b: number) => b - a)
|
||||
return res
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user