Skip to content

Commit 5892f02

Browse files
authored
Merge pull request #239 from Runnect/#238-코스업로드수정
[Fix] #238 - 코스업로드 request 수정
2 parents ac856d1 + 2543b94 commit 5892f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runnect-iOS/Runnect-iOS/Network/Router/CourseRouter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension CourseRouter: TargetType {
3030
var path: String {
3131
switch self {
3232
case .uploadCourseDrawing:
33-
return "/course/v2"
33+
return "/course"
3434
case .getAllPrivateCourse:
3535
return "/course/user"
3636
case .getPrivateCourseNotUploaded:
@@ -86,7 +86,7 @@ extension CourseRouter: TargetType {
8686
content["departureName"] = param.departureName
8787

8888
let jsonData = try JSONSerialization.data(withJSONObject: content)
89-
let formData = MultipartFormData(provider: .data(jsonData), name: "courseCreateRequestDto", mimeType: "application/json")
89+
let formData = MultipartFormData(provider: .data(jsonData), name: "data", mimeType: "application/json")
9090
multipartFormData.append(formData)
9191
} catch {
9292
print(error.localizedDescription)

0 commit comments

Comments
 (0)