Skip to content

Commit

Permalink
fix: update new ip for backend deloyment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxitect committed Nov 21, 2024
1 parent d3b7577 commit 7ccb502
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/fetchData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function fetchData(
body?: string
): Promise<any> {
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",
Expand Down
6 changes: 5 additions & 1 deletion src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}

0 comments on commit 7ccb502

Please sign in to comment.