Skip to content

Instantly share code, notes, and snippets.

@softberries
Created November 29, 2019 08:26
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/32889caf338ffeb61835968ae0c8b9e3 to your computer and use it in GitHub Desktop.
Save softberries/32889caf338ffeb61835968ae0c8b9e3 to your computer and use it in GitHub Desktop.
def getPersons = Action.asyncF { implicit request =>
repo.list().map { people =>
Ok(Json.toJson(people))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment