fix(openapi-ts): first pass for replacing with openapi-ts

This commit is contained in:
2026-05-23 18:53:33 +02:00
parent 62a81e57ad
commit f1afb2096f
6 changed files with 40 additions and 37 deletions
+3 -4
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { apiService } from "./services/apiService";
import type { Game } from "./types";
import { gamesApiListGames } from "./api";
const games = ref<Game[]>([]);
const games = ref<any[]>([]);
const loading = ref(true);
const imageErrors = ref<Set<number>>(new Set());
@@ -21,7 +20,7 @@ const navigate = (path: string) => {
};
onMounted(async () => {
const response = await apiService.getGames();
const response = await gamesApiListGames();
if (response.data) {
games.value = response.data;
}