aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Games.tsx
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-11-04 13:47:50 +0300
committerGitHub <noreply@github.com>2024-11-04 13:47:50 +0300
commiteae19bb1b047b3568e7a9a624b50e80886e56331 (patch)
treeaa3215377fd1a7714e4c5763f9abf9d7dc7def2b /frontend/src/api/Games.tsx
parentfix: remove insert trigger on users, check insert user on login err (#224) (diff)
downloadlphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.gz
lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.bz2
lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.zip
feat/frontend: optimizing imports, file extensions (#230)
Co-authored-by: FifthWit <fifthwitbusiness@gmail.com>
Diffstat (limited to '')
-rw-r--r--frontend/src/api/Games.ts (renamed from frontend/src/api/Games.tsx)10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/api/Games.tsx b/frontend/src/api/Games.ts
index 84b5f74..72bb4b3 100644
--- a/frontend/src/api/Games.tsx
+++ b/frontend/src/api/Games.ts
@@ -1,9 +1,9 @@
1import axios from "axios"; 1import axios from "axios";
2import { url } from "./Api"; 2import { url } from "@api/Api";
3import { GameChapter, GamesChapters } from "../types/Chapters"; 3import { GameChapter, GamesChapters } from "@customTypes/Chapters";
4import { Game } from "../types/Game"; 4import { Game } from "@customTypes/Game";
5import { Map } from "../types/Map"; 5import { Map } from "@customTypes/Map";
6import { Search } from "../types/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`))