Skip to content

Commit

Permalink
[Chore/#68] Path 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Jul 24, 2024
1 parent bc014d8 commit 72496dc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions HMH_iOS/HMH_iOS/Network/Router/AuthRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ extension AuthRouter: BaseTargetType {
var path: String {
switch self {
case .socialLogin:
return "user/login"
return "/v1/user/login"
case .signUp:
return "user/signup"
return "/v1/user/signup"
case .tokenRefresh:
return "user/reissue"
return "/v1/user/reissue"
case .revoke:
return "user"
return "/v1/user"
case .logout:
return "user/logout"
return "/v1/user/logout"
}
}

Expand Down
14 changes: 7 additions & 7 deletions HMH_iOS/HMH_iOS/Network/Router/ChallengeRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ extension ChallengeRouter: BaseTargetType {
var path: String {
switch self {
case .createChallenge:
return "challenge"
return "/v1/challenge"
case .dailyChallengeFail:
return "dailychallenge/failure"
return "/v1/dailychallenge/failure"
case .getChallenge:
return "challenge"
return "/v1/challenge"
case .getdailyChallenge:
return "challenge/home"
return "/v1/challenge/home"
case .addApp:
return "challenge/app"
return "/v1/challenge/app"
case .deleteApp:
return "challenge/app"
return "/v1/challenge/app"
case .postDailyChallenge:
return "challenge/daily/success"
return "/v1/challenge/daily/success"
}
}

Expand Down
2 changes: 1 addition & 1 deletion HMH_iOS/HMH_iOS/Network/Router/MyPageRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension MyPageRouter: BaseTargetType {
var path: String {
switch self {
case .getUserData:
return "user"
return "/v1/user"
}
}

Expand Down
12 changes: 6 additions & 6 deletions HMH_iOS/HMH_iOS/Network/Router/PointRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ extension PointRouter: BaseTargetType {
var path: String {
switch self {
case .getUsagePoint:
return "point/use"
return "/v1/point/use"
case .patchEarnPoint :
return "point/earn"
return "/v1/point/earn"
case .getEarnPoint :
return "point/earn"
return "/v1/point/earn"
case .getPointList:
return "point/list"
return "/v1/point/list"
case .patchPointUse:
return "point/use"
return "/v1/point/use"
case .getCurrentPoint:
return "user/point"
return "/v1/user/point"
}
}

Expand Down

0 comments on commit 72496dc

Please sign in to comment.