Skip to content

Instantly share code, notes, and snippets.

@andreypopp
Created March 19, 2011 11:34
Show Gist options
  • Save andreypopp/877419 to your computer and use it in GitHub Desktop.
Save andreypopp/877419 to your computer and use it in GitHub Desktop.
case req @ DELETE(Path(Seg("users" :: name :: "bookmarks" :: uri))) => for {
BasicAuth(u, p) <- req
UserFound(user) if verify(u, p, user) <- userRepository.findByName(name)
Success <- user.bookmarks.remove(uriString)
} yield NoContent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment