Skip to content

Instantly share code, notes, and snippets.

@softberries
Created November 29, 2019 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/2881117a125a9f089a62bddb201770bf to your computer and use it in GitHub Desktop.
Save softberries/2881117a125a9f089a62bddb201770bf to your computer and use it in GitHub Desktop.
def getPersons = Action.async { implicit request =>
repo.list().map { people =>
Ok(Json.toJson(people))
}.unsafeToFuture()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment