blob: 384f8261f2302d52f25272c47310bafc03f86248 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import axios from "axios";
import { url } from "./Api";
import { Ranking, SteamRanking } from "../types/Ranking";
export const get_official_rankings = async (): Promise<Ranking> => {
const response = await axios.get(url(`rankings/lphub`));
return response.data.data;
};
export const get_unofficial_rankings = async (): Promise<SteamRanking> => {
const response = await axios.get(url(`rankings/steam`));
return response.data.data;
};
|