diff --git a/src/utils/fetchData.ts b/src/utils/fetchData.ts index 4f5b708..608f2e9 100644 --- a/src/utils/fetchData.ts +++ b/src/utils/fetchData.ts @@ -4,7 +4,7 @@ export async function fetchData( body?: string ): Promise { try { - const response = await fetch(`http://34.147.178.6:8080/${query}`, { + const response = await fetch(`http://34.105.229.117:8080/${query}`, { method, headers: { "Content-Type": "application/json", diff --git a/src/utils/types.ts b/src/utils/types.ts index f67d4d8..a23830b 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -10,10 +10,14 @@ export interface Pokemon extends BaseEntity { likes: number; } +export interface PokemonCollection { + pokemon: Pokemon; +} + export interface Collection extends BaseEntity { name: string; themeId: number; passwordHash: string; likes: number; - pokemonCollections: Pokemon[]; + pokemonCollections: PokemonCollection[]; }