         request.setValue(UIDevice.current.systemVersion, forHTTPHeaderField: "X-Tapglue-OSVersion")
         
         if method == .post || method == .put{
-            let convertible = TapglueURLConvertible(request: request)
             do {
-                return try Alamofire.JSONEncoding.default.encode(convertible, with: payload)
+                request.httpBody = try JSONSerialization.data(withJSONObject: payload, options: [])
+                request.setValue("application/json", forHTTPHeaderField: "Content-Type")
+                return request
             } catch {
                 return request
             }
-            //return Alamofire.ParameterEncoding.json.encode(request, parameters: payload).0
         } else {
             return request
         }

//  Copyright © 2016 Tapglue. All rights reserved.
//

import Alamofire

class Router {


    }
}

enum Method: String {
    case get = "get", post = "post", put = "put", delete = "delete"
}
