Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created January 31, 2019 11:30
Show Gist options
  • Save robhinds/99447884eeb6132b7c246a191b164d7f to your computer and use it in GitHub Desktop.
Save robhinds/99447884eeb6132b7c246a191b164d7f to your computer and use it in GitHub Desktop.
trait DocumentRoute[F[_]] extends DocumentRepository[F]{
def F: Monad[F]
def M: MarshallableMonad[F]
val getDocuments: Route = (get & path("documents")) {
complete(
documents()
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment