         let parameters: [String: AnyObject?] = ["includeOwn": includeOwn,
                                                 "flashcardsCount": flashcardsCount,
                                                 "name": name]
-        request(.GET, toURL: url(fromRouter: Router.Deck(child: .Get(id: nil))), parameters: parameters).responseJSON {
+        request(.GET, url: url(fromRouter: Router.Deck(child: .Get(id: nil))), parameters: parameters).responseJSON {
             switch $0.result {
             case .Success(let value):
                 let json = JSON(value).arrayValue

    
    
    func deck(deckID: String?, completion: (ServerResultType<JSON>) -> ()) {
        request(.GET, toURL: url(fromRouter: Router.Deck(child: .Get(id: deckID)))).responseJSON {
            switch $0.result {
            case .Success(let value):
                completion(self.wrongRequest(response: value))

        }
    }
    
    func addFlashcard(deckId: String, flashcardInJSON json: JSON, completion: (ServerResultType<JSON>) -> ()) {
        
        request(.POST, url: url(fromRouter: Router.Flashcards(child: .Post, deckId: deckId))).responseJSON {
            switch $0.result {
            case .Success(let value):
                completion(self.wrongRequest(response: value))
