aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Games.ts
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2025-10-26 13:51:31 +0400
committerGitHub <noreply@github.com>2025-10-26 12:51:31 +0300
commit6a631744d9c80ff9a1a9f4b278bc0337ecdb494e (patch)
tree3acf1f505751d997b1b7482823eacabcb79a03f3 /frontend/src/api/Games.ts
parentfix/frontend: tablet view logout button (#286) (diff)
downloadlphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.tar.gz
lphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.tar.bz2
lphub-6a631744d9c80ff9a1a9f4b278bc0337ecdb494e.zip
chore/frontend: semicolon linting (#287)
Diffstat (limited to 'frontend/src/api/Games.ts')
-rw-r--r--frontend/src/api/Games.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/api/Games.ts b/frontend/src/api/Games.ts
index 98c65e7..a66902d 100644
--- a/frontend/src/api/Games.ts
+++ b/frontend/src/api/Games.ts
@@ -6,14 +6,14 @@ import { Map } from "@customTypes/Map";
6import { Search } from "@customTypes/Search"; 6import { Search } from "@customTypes/Search";
7 7
8export const get_games = async (): Promise<Game[]> => { 8export const get_games = async (): Promise<Game[]> => {
9 const response = await axios.get(url("games")) 9 const response = await axios.get(url("games"));
10 return response.data.data; 10 return response.data.data;
11}; 11};
12 12
13export const get_chapters = async (chapter_id: string): Promise<GameChapter> => { 13export const get_chapters = async (chapter_id: string): Promise<GameChapter> => {
14 const response = await axios.get(url(`chapters/${chapter_id}`)); 14 const response = await axios.get(url(`chapters/${chapter_id}`));
15 return response.data.data; 15 return response.data.data;
16} 16};
17 17
18export const get_games_chapters = async (game_id: string): Promise<GamesChapters> => { 18export const get_games_chapters = async (game_id: string): Promise<GamesChapters> => {
19 const response = await axios.get(url(`games/${game_id}`)); 19 const response = await axios.get(url(`games/${game_id}`));
@@ -21,11 +21,11 @@ export const get_games_chapters = async (game_id: string): Promise<GamesChapters
21}; 21};
22 22
23export const get_game_maps = async (game_id: string): Promise<Map[]> => { 23export const get_game_maps = async (game_id: string): Promise<Map[]> => {
24 const response = await axios.get(url(`games/${game_id}/maps`)) 24 const response = await axios.get(url(`games/${game_id}/maps`));
25 return response.data.data.maps; 25 return response.data.data.maps;
26}; 26};
27 27
28export const get_search = async (q: string): Promise<Search> => { 28export const get_search = async (q: string): Promise<Search> => {
29 const response = await axios.get(url(`search?q=${q}`)) 29 const response = await axios.get(url(`search?q=${q}`));
30 return response.data.data; 30 return response.data.data;
31}; 31};