From 89f56736514daa62f9ccf7058d38144dc7fc9edd Mon Sep 17 00:00:00 2001 From: jangseoyoung Date: Thu, 2 Dec 2021 22:03:31 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20Search=20API=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/Networking/SSGPAPI.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Model/Networking/SSGPAPI.swift b/Sources/Model/Networking/SSGPAPI.swift index 652183f..4bd3019 100644 --- a/Sources/Model/Networking/SSGPAPI.swift +++ b/Sources/Model/Networking/SSGPAPI.swift @@ -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 { @@ -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)" } }