Skip to content

Commit

Permalink
[feat/#54] Fix: url error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjms0214 committed Aug 22, 2023
1 parent 7df102c commit 34a812a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/NewAssignment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const newAssignment: FC = () => {
const submitData = (data: any) => {
let params = {
lecture_id: location.state.lecture_id,
user_id: location.state.user_id,
professor_id: location.state.user_id,
title: data.title,
start_date: startDate,
due_date: dueDate,
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/student/enroll", params)
.post("http://moaroom-back.duckdns.org:8080/lectures/students/enroll", params)
.then(function(response) {
console.log(response)
if (response.data === "강의 신청 완료") {
Expand Down

0 comments on commit 34a812a

Please sign in to comment.