                               success: ((Data?) -> Void)?,
                               failure: ((_ data: Data?, _ error: RequestError, _ responseCode: Int) -> Void)? = nil) {
         DispatchQueue.global().async {
-            var jsonObj: NSData?
             var nameOfFile: String?
             // News request
-            if url.path == "news?shortened=true" || url.path == "news?shortened=false" {
+            if url.path == "/news" {
                 switch method {
                 case .GET:
                     nameOfFile = "GetNews"

                default:
                    print("Method is not appropriate.")
                } // organization info request
            } else if url.path == "info" {
                switch method {
                case .GET:
                    nameOfFile = "GetOrganizationInfo"

                    print("Method is not appropriate.")
                }
            }
            guard nameOfFile != nil else {
                failure?(nil, RequestError.InvalidRequest, 0)
                return
            }
            guard let path = Bundle.main.path(forResource: nameOfFile, ofType: "json") else {
                failure?(nil, RequestError.InvalidRequest, 0)
                return
            }
            guard let jsonObj = try? NSData(contentsOfFile: path, options: []) else {
                failure?(nil, RequestError.InvalidRequest, 0)
                return
            }
            success?(jsonObj as Data)
        }
    }
}
