From eae19bb1b047b3568e7a9a624b50e80886e56331 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Mon, 4 Nov 2024 13:47:50 +0300
Subject: feat/frontend: optimizing imports, file extensions (#230)

Co-authored-by: FifthWit <fifthwitbusiness@gmail.com>
---
 frontend/src/api/Games.tsx | 31 -------------------------------
 1 file changed, 31 deletions(-)
 delete mode 100644 frontend/src/api/Games.tsx

(limited to 'frontend/src/api/Games.tsx')

diff --git a/frontend/src/api/Games.tsx b/frontend/src/api/Games.tsx
deleted file mode 100644
index 84b5f74..0000000
--- a/frontend/src/api/Games.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import axios from "axios";
-import { url } from "./Api";
-import { GameChapter, GamesChapters } from "../types/Chapters";
-import { Game } from "../types/Game";
-import { Map } from "../types/Map";
-import { Search } from "../types/Search";
-
-export const get_games = async (): Promise<Game[]> => {
-  const response = await axios.get(url(`games`))
-  return response.data.data;
-};
-
-export const get_chapters = async (chapter_id: string): Promise<GameChapter> => {
-  const response = await axios.get(url(`chapters/${chapter_id}`));
-  return response.data.data;
-}
-
-export const get_games_chapters = async (game_id: string): Promise<GamesChapters> => {
-  const response = await axios.get(url(`games/${game_id}`));
-  return response.data.data;
-};
-
-export const get_game_maps = async (game_id: string): Promise<Map[]> => {
-  const response = await axios.get(url(`games/${game_id}/maps`))
-  return response.data.data.maps;
-};
-
-export const get_search = async (q: string): Promise<Search> => {
-  const response = await axios.get(url(`search?q=${q}`))
-  return response.data.data;
-};
-- 
cgit v1.2.3

