|
|
|
@ -207,7 +207,6 @@ public class Services { |
|
|
|
request.httpBody = apiCall.body.data(using: .utf8) |
|
|
|
request.httpBody = apiCall.body.data(using: .utf8) |
|
|
|
request.setValue("application/json", forHTTPHeaderField: "Content-Type") |
|
|
|
request.setValue("application/json", forHTTPHeaderField: "Content-Type") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let method = HTTPMethod(rawValue: apiCall.method), self._isTokenRequired(type: T.self, method: method) { |
|
|
|
if let method = HTTPMethod(rawValue: apiCall.method), self._isTokenRequired(type: T.self, method: method) { |
|
|
|
do { |
|
|
|
do { |
|
|
|
let token = try self.keychainStore.getToken() |
|
|
|
let token = try self.keychainStore.getToken() |
|
|
|
|