Make this project work again

This commit is contained in:
Lncvrt committed 2026-03-24 23:36:05 -07:00
1 parent e3cc2406b8
commit cb342db135
4 files changed
+87 -5

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ struct ContentView: View {
}
func loadLeaderboard() async throws -> [Player] {
let url = URL(string: "https://berrydash.lncvrt.xyz/database/getTopPlayersAPI.php")!
let url = URL(string: "https://games.lncvrt.xyz/api/berrydash/leaderboard/score")!
let (data, _) = try await URLSession.shared.data(from: url)
guard let raw = String(data: data, encoding: .utf8) else { return [] }
return parseLeaderboard(raw)