Created
April 8, 2015 00:05
-
-
Save sgoodwin/1a3539f5560846fae784 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alamofire.request(SharingRouter.GroupAdd(sharing: sharing, name: name)).responseJSON(options: nil) { (request, response, json, error) -> Void in | |
let group = flatMap(map(json, JSONValue.parse), Group.decode) | |
block(group) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment