Skip to content

Commit

Permalink
updated api urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 10, 2023
1 parent 22a3fa4 commit 91e7244
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const BattleReports = ({ planetId }: Props) => {
setError(null);
try {
const response = await fetch(
`http://localhost:3000/api/battle-reports?planet_id=${planetId}`
`http://103.252.117.72:3001/api/battle-reports?planet_id=${planetId}`
);
if (!response.ok) {
throw new Error("Something went wrong!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const LeadearBoardFleet = ({ planetId }: Props) => {
setIsLoading(true);
setError(null);
try {
const response = await fetch("http://localhost:3000/api/fleet");
const response = await fetch("http://103.252.117.72:3001/api/fleet");
if (!response.ok) {
throw new Error("Something went wrong!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const LeadearBoardMain = ({ planetId }: Props) => {
setIsLoading(true);
setError(null);
try {
const response = await fetch("http://localhost:3000/api/leaderboard");
const response = await fetch(
"http://103.252.117.72:3001/api/leaderboard"
);
if (!response.ok) {
throw new Error("Something went wrong!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const LeadearBoardTech = ({ planetId }: Props) => {
setIsLoading(true);
setError(null);
try {
const response = await fetch("http://localhost:3000/api/tech");
const response = await fetch("http://103.252.117.72:3001/api/tech");
if (!response.ok) {
throw new Error("Something went wrong!");
}
Expand Down

0 comments on commit 91e7244

Please sign in to comment.