From 7c562d906028f8504aa6aeaec501b6210479b023 Mon Sep 17 00:00:00 2001 From: Imggaggu Date: Mon, 12 May 2025 13:37:23 +0900 Subject: [PATCH] [Fix] baseurl for api --- frontend/src/api/api.js | 2 +- frontend/src/api/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/api.js b/frontend/src/api/api.js index 4ecf00d..8278d08 100644 --- a/frontend/src/api/api.js +++ b/frontend/src/api/api.js @@ -1,7 +1,7 @@ import axios from "axios"; const api = axios.create({ - baseURL: "http://www.pirocheck.org/api", + baseURL: "http://api.pirocheck.org/api", withCredentials: true, }); diff --git a/frontend/src/api/user.js b/frontend/src/api/user.js index f91670c..811264c 100644 --- a/frontend/src/api/user.js +++ b/frontend/src/api/user.js @@ -1,5 +1,5 @@ export const loginUser = async ({ name, password }) => { - const res = await fetch("http://www.pirocheck.org/api/login", { + const res = await fetch("http://api.pirocheck.org/api/login", { method: "POST", headers: { "Content-Type": "application/json",