Skip to content

Commit

Permalink
Merge pull request #60 from MoaRoom/feat/#54
Browse files Browse the repository at this point in the history
modify API URL & request param
  • Loading branch information
mjms0214 authored Aug 20, 2023
2 parents 99942a7 + 7df102c commit cc23b58
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 cc23b58

Please sign in to comment.