Skip to content

Commit

Permalink
[feat/#54] Fix: modify API URL & request param
Browse files Browse the repository at this point in the history
  • Loading branch information
mjms0214 committed Aug 20, 2023
1 parent fa0c840 commit 7df102c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/MyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ const MyPage: FC = () => {
const createLecture = (data: any) => {
let params = {
title: data.title,
professorId: user_id,
professor_id: user_id,
room: data.room,
roomCount: data.room_count,
room_count: data.room_count,
};
console.log(params);

Expand Down
2 changes: 1 addition & 1 deletion src/props/Lecture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Lecture = ({ lecture, isProfessor }: LectureProps) => {
console.log(params);

axios
.post("http://moaroom-back.duckdns.org:8080/lecture/enroll", params)
.post("http://moaroom-back.duckdns.org:8080/lecture/student/enroll", params)
.then(function(response) {
console.log(response)
if (response.data === "강의 신청 완료") {
Expand Down

0 comments on commit 7df102c

Please sign in to comment.