From 6ef422319e34c02d4569b85d4f2dda91084bfb85 Mon Sep 17 00:00:00 2001 From: hryeong66 Date: Thu, 3 Oct 2024 17:42:04 +0900 Subject: [PATCH] =?UTF-8?q?etc:=20=EC=84=9C=EB=B2=84=20=EC=A3=BC=EC=86=8C?= =?UTF-8?q?=20=EB=B0=8F=20deviceId=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit etc: 서버 주소 및 deviceId 변경 --- .../Core/PPACData/Sources/Endpoint/MemeEditEndPoint.swift | 2 +- Projects/Core/PPACNetwork/Sources/Requestable.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Projects/Core/PPACData/Sources/Endpoint/MemeEditEndPoint.swift b/Projects/Core/PPACData/Sources/Endpoint/MemeEditEndPoint.swift index 8fe7859..5ff6990 100644 --- a/Projects/Core/PPACData/Sources/Endpoint/MemeEditEndPoint.swift +++ b/Projects/Core/PPACData/Sources/Endpoint/MemeEditEndPoint.swift @@ -22,7 +22,7 @@ enum MemeEditEndPoint: MultipartRequestable { var path: String? { switch self { case .registerMeme: - return "meme" + return "/meme" } } diff --git a/Projects/Core/PPACNetwork/Sources/Requestable.swift b/Projects/Core/PPACNetwork/Sources/Requestable.swift index af8acbc..90f7592 100644 --- a/Projects/Core/PPACNetwork/Sources/Requestable.swift +++ b/Projects/Core/PPACNetwork/Sources/Requestable.swift @@ -33,8 +33,8 @@ public protocol Requestable { extension Requestable { private var baseUrl: String { - return "http://ppac-server.run.goorm.io/api" // 개발 서버 - //return "https://ppac-server-goorm.run.goorm.site/api" // 운영 서버 + //return "http://ppac-server.run.goorm.io/api" // 개발 서버 + return "https://ppac-server-goorm.run.goorm.site/api" // 운영 서버 } public func makeURL() -> URL? { @@ -47,7 +47,7 @@ extension Requestable { urlRequest.httpMethod = httpMethod.rawValue.uppercased() var defaultHeaders = [ - "x-device-id": UserInfo.shared.testDeviceId, + "x-device-id": UserInfo.shared.deviceId, "accept": "application/json", "Content-Type": "application/json" ]