diff --git a/Project_Timer/Data/API/API.swift b/Project_Timer/Data/API/API.swift index db58ffd1..0a2358f0 100644 --- a/Project_Timer/Data/API/API.swift +++ b/Project_Timer/Data/API/API.swift @@ -10,7 +10,7 @@ import Foundation import Moya extension TargetType { - static func parameters(from encodable: Encodable) -> [String: Any] { + func parameters(from encodable: Encodable) -> [String: Any] { let encoder = JSONEncoder() guard let data = try? encoder.encode(encodable), let dictionary = try? JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any] else { diff --git a/Project_Timer/Data/API/AuthAPI.swift b/Project_Timer/Data/API/AuthAPI.swift index dd2fecce..b5092e2d 100644 --- a/Project_Timer/Data/API/AuthAPI.swift +++ b/Project_Timer/Data/API/AuthAPI.swift @@ -51,9 +51,9 @@ extension AuthAPI: TargetType { case .postSignin(let request): return .requestJSONEncodable(request) case .getCheckUsername(let request): - return .requestParameters(parameters: Self.parameters(from: request), encoding: URLEncoding.queryString) + return .requestParameters(parameters: self.parameters(from: request), encoding: URLEncoding.queryString) case .getCheckEmail(let request): - return .requestParameters(parameters: Self.parameters(from: request), encoding: URLEncoding.queryString) + return .requestParameters(parameters: self.parameters(from: request), encoding: URLEncoding.queryString) case .postUpdatePassword(let request): return .requestJSONEncodable(request) }