-
-
Save tomatophobia/9208985d9ae6b9e37e6119343ac879de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| type HttpRoutes = Request => Option[Future[Response]] | |
| object HttpRoutes { | |
| def of(pf: PartialFunction[Request, Future[Response]]): HttpRoutes = | |
| pf.lift | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment