Skip to content

Commit

Permalink
⚡️ :: Search API 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jangseoyoung committed Dec 2, 2021
1 parent 12cea33 commit 89f5673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Model/Networking/SSGPAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum SSGPAPI {
case lowestList
case productDetail(_ productId: String)
case likeProduct(_ userId: String, _ productId: String)
case searchProduct
case searchProduct(_ searchWord: String)
}

extension SSGPAPI: TargetType {
Expand Down Expand Up @@ -64,8 +64,8 @@ extension SSGPAPI: TargetType {
return "/product/detail/\(productId)"
case .likeProduct(_, let productId):
return "/product/detail/\(productId)"
case .searchProduct:
return "/product/lowPrice"
case .searchProduct(let searchWord):
return "/product/search?search_word=\(searchWord)"
}
}

Expand Down

0 comments on commit 89f5673

Please sign in to comment.