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 + } +}