blob: 9afd999689f43d89b99e0c822ad2a39e144c3f25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import axios from 'axios';
import { url } from '@api/Api';
import { Ranking, SteamRanking } from '@customTypes/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;
};
|