From d63997c0154106b587cc61f074d2f3f3e0278c5c Mon Sep 17 00:00:00 2001 From: Jungpyo Hong <54448459+jphong1111@users.noreply.github.com> Date: Mon, 3 May 2021 01:43:00 -0500 Subject: [PATCH] Update EndPointType.swift --- .../Network Layer/Services/EndPointType.swift | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Helper/Network Layer/Services/EndPointType.swift b/Helper/Network Layer/Services/EndPointType.swift index a0b3fdb..3e28b99 100644 --- a/Helper/Network Layer/Services/EndPointType.swift +++ b/Helper/Network Layer/Services/EndPointType.swift @@ -14,3 +14,24 @@ protocol EndPointType{ var task: HTTPTask { get } var headers: HTTPHeaders? { get } } + +extension EndPointType { + var baseURL: URL { + guard let url = URL(string: "ADD your baseURL") else { + fatalError("baseURL Error") + } + return url + } + + var httpMethod: HTTPMethod { + .get + } + + var task: HTTPTask { + .request + } + + var headers: HTTPHeaders? { + nil + } +}