Created
December 18, 2017 16:32
-
-
Save robhinds/7bcc5cefaa56d36861ea86d1092ebac3 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
trait MethodAndPathDirectives { | |
def getPath[L](x: PathMatcher[L]): Directive[L] = get & path(x) | |
def postPath[L](x: PathMatcher[L]): Directive[L] = post & path(x) | |
def putPath[L](x: PathMatcher[L]): Directive[L] = put & path(x) | |
def deletePath[L](x: PathMatcher[L]): Directive[L] = delete & path(x) | |
def headPath[L](x: PathMatcher[L]): Directive[L] = head & path(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment