Skip to content

Commit

Permalink
fix : fix API
Browse files Browse the repository at this point in the history
raylee0519 committed Aug 4, 2022
1 parent 6e04d76 commit 170e75c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/mainpage/TrashCardView.tsx
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ function MultiActionAreaCard() {
const [thridData, setThirdData] = useState<BaseContent | null>(null);

axios
.get("http://localhost:8080/API/trash/statistics/ranking")
.get("http://localhost:8080/api/trash/statistics/ranking")
.then((response) => {
for (let i = 0; i < 3; i++) {
trashlist[i].kind = response.data[i].kind;
2 changes: 1 addition & 1 deletion frontend/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -102,4 +102,4 @@ export default contents;

export const DOMAIN = "localhost";

export const API_BASE_URL = `http://${DOMAIN}:8080/API`;
export const API_BASE_URL = `http://${DOMAIN}:8080/api`;

0 comments on commit 170e75c

Please sign in to comment.