Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/src/Attendance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ const Attendance = () => {
if (!userId) return;

// 유저가 입력한 출석 코드 서버에 전달(서버에서 출석코드 체크)
const res = await api.post(
"/attendance/mark",

const res = await axios.post(
"/api/attendance/mark",

{
userId,
code: attendanceCode[0],
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/api.js
Original file line number Diff line number Diff line change
@@ -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,
});

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/user.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down